20 #if defined(_MSC_VER) && _MSC_VER >= 1600
22 #define BT_OVERRIDE override
91 return mutex->tryLock();
105 virtual void forLoop(
int iBegin,
int iEnd)
const = 0;
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define SIMD_FORCE_INLINE
SIMD_FORCE_INLINE void btMutexUnlock(btSpinMutex *mutex)
SIMD_FORCE_INLINE void btMutexLock(btSpinMutex *mutex)
btITaskScheduler * btGetSequentialTaskScheduler()
void btResetThreadIndexCounter()
btScalar btParallelSum(int iBegin, int iEnd, int grainSize, const btIParallelSumBody &body)
btITaskScheduler * btGetTaskScheduler()
btITaskScheduler * btCreateDefaultTaskScheduler()
bool btThreadsAreRunning()
btITaskScheduler * btGetTBBTaskScheduler()
unsigned int btGetCurrentThreadIndex()
btITaskScheduler * btGetOpenMPTaskScheduler()
void btSetTaskScheduler(btITaskScheduler *ts)
SIMD_FORCE_INLINE bool btMutexTryLock(btSpinMutex *mutex)
btITaskScheduler * btGetPPLTaskScheduler()
const unsigned int BT_MAX_THREAD_COUNT
void btParallelFor(int iBegin, int iEnd, int grainSize, const btIParallelForBody &body)
virtual ~btIParallelForBody()
virtual void forLoop(int iBegin, int iEnd) const =0
virtual btScalar sumLoop(int iBegin, int iEnd) const =0
virtual ~btIParallelSumBody()
btITaskScheduler(const char *name)
virtual int getNumThreads() const =0
unsigned int m_savedThreadCounter
virtual int getMaxNumThreads() const =0
virtual void parallelFor(int iBegin, int iEnd, int grainSize, const btIParallelForBody &body)=0
virtual void sleepWorkerThreadsHint()
virtual void deactivate()
virtual void setNumThreads(int numThreads)=0
const char * getName() const
virtual btScalar parallelSum(int iBegin, int iEnd, int grainSize, const btIParallelSumBody &body)=0
virtual ~btITaskScheduler()
SyclQueue void void size_t num_bytes void