16 #ifndef BT_THREAD_SUPPORT_INTERFACE_H 17 #define BT_THREAD_SUPPORT_INTERFACE_H 25 virtual void lock() = 0;
34 virtual int getNumWorkerThreads()
const = 0;
35 virtual int getCacheFriendlyNumThreads()
const = 0;
36 virtual int getLogicalToPhysicalCoreRatio()
const = 0;
37 virtual void runTask(
int threadIndex,
void* userData) = 0;
38 virtual void waitForAllTasks() = 0;
43 typedef void (*ThreadFunc)(
void* userPtr);
48 ThreadFunc userThreadFunc,
49 int threadStackSize = 65535)
50 : m_uniqueName(uniqueName),
51 m_userThreadFunc(userThreadFunc),
52 m_threadStackSize(threadStackSize)
64 #endif //BT_THREAD_SUPPORT_INTERFACE_H
const char * m_uniqueName
virtual ~btCriticalSection()
ConstructionInfo(const char *uniqueName, ThreadFunc userThreadFunc, int threadStackSize=65535)
virtual ~btThreadSupportInterface()
ThreadFunc m_userThreadFunc