Bullet Collision Detection & Physics Library
|
Go to the documentation of this file.
20 #if defined(_MSC_VER) && _MSC_VER >= 1600
22 #define BT_OVERRIDE override
76 #endif // #if BT_THREADSAFE
85 #endif // #if BT_THREADSAFE
95 #endif // #if BT_THREADSAFE
105 virtual void forLoop(
int iBegin,
int iEnd)
const = 0;
void btMutexLock(btSpinMutex *mutex)
virtual ~btIParallelForBody()
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
void btSetTaskScheduler(btITaskScheduler *ts)
btScalar btParallelSum(int iBegin, int iEnd, int grainSize, const btIParallelSumBody &body)
virtual ~btIParallelSumBody()
bool btMutexTryLock(btSpinMutex *mutex)
virtual void forLoop(int iBegin, int iEnd) const =0
const char * getName() const
virtual void setNumThreads(int numThreads)=0
btITaskScheduler * btGetTaskScheduler()
virtual btScalar parallelSum(int iBegin, int iEnd, int grainSize, const btIParallelSumBody &body)=0
btITaskScheduler * btGetTBBTaskScheduler()
btITaskScheduler * btGetSequentialTaskScheduler()
unsigned int btGetCurrentThreadIndex()
void btResetThreadIndexCounter()
const unsigned int BT_MAX_THREAD_COUNT
virtual int getNumThreads() const =0
virtual void deactivate()
#define SIMD_FORCE_INLINE
btITaskScheduler * btCreateDefaultTaskScheduler()
btSpinMutex – lightweight spin-mutex implemented with atomic ops, never puts a thread to sleep becaus...
unsigned int m_savedThreadCounter
btITaskScheduler * btGetOpenMPTaskScheduler()
virtual btScalar sumLoop(int iBegin, int iEnd) const =0
virtual void parallelFor(int iBegin, int iEnd, int grainSize, const btIParallelForBody &body)=0
void btMutexUnlock(btSpinMutex *mutex)
virtual void sleepWorkerThreadsHint()
void btParallelFor(int iBegin, int iEnd, int grainSize, const btIParallelForBody &body)
btITaskScheduler(const char *name)
virtual ~btITaskScheduler()
btITaskScheduler * btGetPPLTaskScheduler()
virtual int getMaxNumThreads() const =0
bool btThreadsAreRunning()