16#ifndef BT_THREAD_SUPPORT_INTERFACE_H
17#define BT_THREAD_SUPPORT_INTERFACE_H
37 virtual void runTask(
int threadIndex,
void* userData) = 0;
49 int threadStackSize = 65535)
virtual ~btCriticalSection()
void(* ThreadFunc)(void *userPtr)
virtual int getCacheFriendlyNumThreads() const =0
virtual int getLogicalToPhysicalCoreRatio() const =0
virtual void waitForAllTasks()=0
static btThreadSupportInterface * create(const ConstructionInfo &info)
virtual void runTask(int threadIndex, void *userData)=0
virtual ~btThreadSupportInterface()
virtual int getNumWorkerThreads() const =0
virtual void deleteCriticalSection(btCriticalSection *criticalSection)=0
virtual btCriticalSection * createCriticalSection()=0
ThreadFunc m_userThreadFunc
ConstructionInfo(const char *uniqueName, ThreadFunc userThreadFunc, int threadStackSize=65535)
const char * m_uniqueName