|
Blender V4.5
|
#include "btScalar.h"Go to the source code of this file.
Classes | |
| class | btSpinMutex |
| class | btIParallelForBody |
| class | btIParallelSumBody |
| class | btITaskScheduler |
Macros | |
| #define | BT_OVERRIDE |
Functions | |
| bool | btIsMainThread () |
| bool | btThreadsAreRunning () |
| unsigned int | btGetCurrentThreadIndex () |
| void | btResetThreadIndexCounter () |
| SIMD_FORCE_INLINE void | btMutexLock (btSpinMutex *mutex) |
| SIMD_FORCE_INLINE void | btMutexUnlock (btSpinMutex *mutex) |
| SIMD_FORCE_INLINE bool | btMutexTryLock (btSpinMutex *mutex) |
| void | btSetTaskScheduler (btITaskScheduler *ts) |
| btITaskScheduler * | btGetTaskScheduler () |
| btITaskScheduler * | btGetSequentialTaskScheduler () |
| btITaskScheduler * | btCreateDefaultTaskScheduler () |
| btITaskScheduler * | btGetOpenMPTaskScheduler () |
| btITaskScheduler * | btGetTBBTaskScheduler () |
| btITaskScheduler * | btGetPPLTaskScheduler () |
| void | btParallelFor (int iBegin, int iEnd, int grainSize, const btIParallelForBody &body) |
| btScalar | btParallelSum (int iBegin, int iEnd, int grainSize, const btIParallelSumBody &body) |
Variables | |
| const unsigned int | BT_MAX_THREAD_COUNT = 64 |
| #define BT_OVERRIDE |
Definition at line 26 of file btThreads.h.
Referenced by convertBodies(), convertContacts(), convertJoints(), createPredictiveContacts(), AllocContactConstraintsLoop::forLoop(), AssignConstraintsToGridBatchesLoop::forLoop(), CollectContactManifoldCachedInfoLoop::forLoop(), ConvertBodiesLoop::forLoop(), ConvertJointsLoop::forLoop(), ExpandConstraintRowsLoop::forLoop(), InitJointsLoop::forLoop(), ReadSolverConstraintsLoop::forLoop(), SetupContactConstraintsLoop::forLoop(), UpdateConstraintBatchIdsForMergesLoop::forLoop(), UpdateIslandDispatcher::forLoop(), UpdaterCreatePredictiveContacts::forLoop(), UpdaterIntegrateTransforms::forLoop(), UpdaterUnconstrainedMotion::forLoop(), WriteBodiesLoop::forLoop(), WriteContactPointsLoop::forLoop(), WriteJointsLoop::forLoop(), WriteOutConstraintIndicesLoop::forLoop(), btTaskSchedulerSequential::getMaxNumThreads(), btTaskSchedulerSequential::getNumThreads(), btConstraintSolverPoolMt::getSolverType(), integrateTransforms(), btTaskSchedulerSequential::parallelFor(), btTaskSchedulerSequential::parallelSum(), predictUnconstraintMotion(), btTaskSchedulerSequential::setNumThreads(), solveConstraints(), solveGroupCacheFriendlyFinish(), solveGroupCacheFriendlySetup(), solveSingleIteration(), stepSimulation(), ContactFrictionSolverLoop::sumLoop(), ContactRollingFrictionSolverLoop::sumLoop(), ContactSolverLoop::sumLoop(), ContactSplitPenetrationImpulseSolverLoop::sumLoop(), InterleavedContactSolverLoop::sumLoop(), and JointSolverLoop::sumLoop().
| btITaskScheduler * btCreateDefaultTaskScheduler | ( | ) |
Definition at line 787 of file btTaskScheduler.cpp.
References btCreateDefaultTaskScheduler().
Referenced by btCreateDefaultTaskScheduler().
| unsigned int btGetCurrentThreadIndex | ( | ) |
Definition at line 290 of file btThreads.cpp.
References BT_MAX_THREAD_COUNT, btAssert, btGetCurrentThreadIndex(), gBtTaskScheduler, ThreadsafeCounter::getNext(), gThreadCounter, THREAD_LOCAL_STATIC, and U.
Referenced by btGetCurrentThreadIndex(), btIsMainThread(), btQuickprofGetCurrentThreadIndex2(), btSetTaskScheduler(), btCollisionDispatcherMt::getNewManifold(), and btDbvtBroadphase::rayTest().
| btITaskScheduler * btGetOpenMPTaskScheduler | ( | ) |
Definition at line 762 of file btThreads.cpp.
References btGetOpenMPTaskScheduler().
Referenced by btGetOpenMPTaskScheduler().
| btITaskScheduler * btGetPPLTaskScheduler | ( | ) |
Definition at line 784 of file btThreads.cpp.
References btGetPPLTaskScheduler().
Referenced by btGetPPLTaskScheduler().
| btITaskScheduler * btGetSequentialTaskScheduler | ( | ) |
Definition at line 755 of file btThreads.cpp.
References btGetSequentialTaskScheduler().
Referenced by btGetSequentialTaskScheduler().
| btITaskScheduler * btGetTaskScheduler | ( | ) |
Definition at line 407 of file btThreads.cpp.
References btGetTaskScheduler(), and gBtTaskScheduler.
Referenced by btCollisionDispatcherMt::btCollisionDispatcherMt(), btGetTaskScheduler(), and writeGrainSizes().
| btITaskScheduler * btGetTBBTaskScheduler | ( | ) |
Definition at line 773 of file btThreads.cpp.
References btGetTBBTaskScheduler().
Referenced by btGetTBBTaskScheduler().
| bool btIsMainThread | ( | ) |
Definition at line 324 of file btThreads.cpp.
References btGetCurrentThreadIndex(), and btIsMainThread().
Referenced by btIsMainThread(), and btResetThreadIndexCounter().
| SIMD_FORCE_INLINE void btMutexLock | ( | btSpinMutex * | mutex | ) |
Definition at line 70 of file btThreads.h.
References btMutexLock(), btSpinMutex::lock(), and SIMD_FORCE_INLINE.
Referenced by btPoolAllocator::allocate(), btMutexLock(), createPredictiveContactsInternal(), and btPoolAllocator::freeMemory().
| SIMD_FORCE_INLINE bool btMutexTryLock | ( | btSpinMutex * | mutex | ) |
Definition at line 88 of file btThreads.h.
References btMutexTryLock(), SIMD_FORCE_INLINE, and btSpinMutex::tryLock().
Referenced by btMutexTryLock().
| SIMD_FORCE_INLINE void btMutexUnlock | ( | btSpinMutex * | mutex | ) |
Definition at line 79 of file btThreads.h.
References btMutexUnlock(), SIMD_FORCE_INLINE, and btSpinMutex::unlock().
Referenced by btPoolAllocator::allocate(), btMutexUnlock(), createPredictiveContactsInternal(), and btPoolAllocator::freeMemory().
| void btParallelFor | ( | int | iBegin, |
| int | iEnd, | ||
| int | grainSize, | ||
| const btIParallelForBody & | body ) |
Definition at line 412 of file btThreads.cpp.
References BT_MAX_THREAD_COUNT, btAssert, btParallelFor(), btThreadsAreRunning(), btIParallelForBody::forLoop(), gBtTaskScheduler, i, and btITaskScheduler::parallelFor().
Referenced by allocAllContactConstraints(), btParallelFor(), btCollisionDispatcherMt::dispatchAllCollisionPairs(), expandConstraintRowsMt(), initBatchedConstraintInfo(), btSimulationIslandManagerMt::parallelIslandDispatch(), setupAllContactConstraints(), setupSpatialGridBatchesMt(), updateConstraintBatchIdsForMergesMt(), and writeOutConstraintIndicesMt().
| btScalar btParallelSum | ( | int | iBegin, |
| int | iEnd, | ||
| int | grainSize, | ||
| const btIParallelSumBody & | body ) |
Definition at line 439 of file btThreads.cpp.
References BT_MAX_THREAD_COUNT, btAssert, btParallelSum(), btThreadsAreRunning(), gBtTaskScheduler, i, btITaskScheduler::parallelSum(), and btIParallelSumBody::sumLoop().
Referenced by btParallelSum(), resolveAllContactConstraints(), resolveAllContactConstraintsInterleaved(), resolveAllContactFrictionConstraints(), resolveAllJointConstraints(), and resolveAllRollingFrictionConstraints().
| void btResetThreadIndexCounter | ( | ) |
Definition at line 329 of file btThreads.cpp.
References btAssert, btIsMainThread(), btResetThreadIndexCounter(), gThreadCounter, and ThreadsafeCounter::mCounter.
Referenced by btResetThreadIndexCounter().
| void btSetTaskScheduler | ( | btITaskScheduler * | ts | ) |
Definition at line 386 of file btThreads.cpp.
References btITaskScheduler::activate(), btAssert, btGetCurrentThreadIndex(), btSetTaskScheduler(), btITaskScheduler::deactivate(), and gBtTaskScheduler.
Referenced by btSetTaskScheduler().
| bool btThreadsAreRunning | ( | ) |
Definition at line 381 of file btThreads.cpp.
References btThreadsAreRunning(), and gThreadsRunningCounter.
Referenced by btParallelFor(), btParallelSum(), and btThreadsAreRunning().
| const unsigned int BT_MAX_THREAD_COUNT = 64 |
Definition at line 31 of file btThreads.h.
Referenced by btDbvtBroadphase::btDbvtBroadphase(), btGetCurrentThreadIndex(), btParallelFor(), btParallelSum(), and ThreadsafeCounter::getNext().