22 #if defined (_MSC_VER) && _MSC_VER >= 1600 24 #define BT_OVERRIDE override 75 #endif // #if BT_THREADSAFE 82 #endif // #if BT_THREADSAFE 91 #endif // #if BT_THREADSAFE 102 virtual void forLoop(
int iBegin,
int iEnd )
const = 0;
114 const char*
getName()
const {
return m_name; }
116 virtual int getMaxNumThreads()
const = 0;
117 virtual int getNumThreads()
const = 0;
118 virtual void setNumThreads(
int numThreads ) = 0;
119 virtual void parallelFor(
int iBegin,
int iEnd,
int grainSize,
const btIParallelForBody& body ) = 0;
122 virtual void activate();
123 virtual void deactivate();
btITaskScheduler * btGetOpenMPTaskScheduler()
#define SIMD_FORCE_INLINE
btSpinMutex – lightweight spin-mutex implemented with atomic ops, never puts a thread to sleep beca...
btITaskScheduler * btGetPPLTaskScheduler()
bool btThreadsAreRunning()
virtual ~btITaskScheduler()
btITaskScheduler * btGetSequentialTaskScheduler()
const unsigned int BT_MAX_THREAD_COUNT
void btParallelFor(int iBegin, int iEnd, int grainSize, const btIParallelForBody &body)
const char * getName() const
btITaskScheduler * btGetTaskScheduler()
bool btMutexTryLock(btSpinMutex *mutex)
unsigned int btGetCurrentThreadIndex()
void btResetThreadIndexCounter()
void btMutexUnlock(btSpinMutex *mutex)
void btMutexLock(btSpinMutex *mutex)
unsigned int m_savedThreadCounter
virtual ~btIParallelForBody()
btITaskScheduler * btGetTBBTaskScheduler()
void btSetTaskScheduler(btITaskScheduler *ts)