19 lines
348 B
C++
19 lines
348 B
C++
#ifndef IVRTHREADPOOL_H
|
|
#define IVRTHREADPOOL_H
|
|
#include <functional>
|
|
#include <thread>
|
|
#include "VrKernelTool_global.h"
|
|
|
|
|
|
typedef std::function<void (void *)> ThreadExecFunc;
|
|
|
|
|
|
class VRTHREADPOOL_EXPORT IVrThreadPool
|
|
{
|
|
public:
|
|
// 执行任务
|
|
virtual int ExecTask(ThreadExecFunc fExecFunc, void* pParam) = 0;
|
|
};
|
|
|
|
#endif // IVRTHREADPOOL_H
|