2025-07-23 01:35:14 +08:00
|
|
|
#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;
|
|
|
|
|
};
|