21 lines
416 B
C
21 lines
416 B
C
|
|
#pragma once
|
||
|
|
#include "VrKernelTool_global.h"
|
||
|
|
#include "IVrThreadPool.h"
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief The IVrKernelTool class
|
||
|
|
* 1. 提供线程池
|
||
|
|
*/
|
||
|
|
|
||
|
|
class VRTHREADPOOL_EXPORT IVrKernelTool
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
virtual ~IVrKernelTool() = default;
|
||
|
|
|
||
|
|
// 创建kernel工具
|
||
|
|
static bool CreateKernelTool(IVrKernelTool** ppKernelTool);
|
||
|
|
|
||
|
|
// 创建线程池
|
||
|
|
virtual bool CreateThreadPool(IVrThreadPool** ppThreadPool) = 0;
|
||
|
|
};
|