16 #ifndef BT_THREAD_SUPPORT_INTERFACE_H 17 #define BT_THREAD_SUPPORT_INTERFACE_H 27 virtual void lock() = 0;
38 virtual int getNumWorkerThreads()
const = 0;
39 virtual int getCacheFriendlyNumThreads()
const = 0;
40 virtual int getLogicalToPhysicalCoreRatio()
const = 0;
41 virtual void runTask(
int threadIndex,
void* userData ) = 0;
42 virtual void waitForAllTasks() = 0;
47 typedef void( *ThreadFunc )(
void* userPtr );
52 ThreadFunc userThreadFunc,
53 int threadStackSize = 65535
55 :m_uniqueName( uniqueName ),
56 m_userThreadFunc( userThreadFunc ),
57 m_threadStackSize( threadStackSize )
69 #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