Jolt Physics
A multi core friendly Game Physics Engine
|
Implementation that performs no locking (assumes the lock has already been taken) More...
#include <BodyLockInterface.h>
Public Member Functions | |
BodyLockInterface (BodyManager &inBodyManager) | |
Constructor. | |
Locking functions | |
virtual SharedMutex * | LockRead (const BodyID &inBodyID) const override |
virtual void | UnlockRead (SharedMutex *inMutex) const override |
virtual SharedMutex * | LockWrite (const BodyID &inBodyID) const override |
virtual void | UnlockWrite (SharedMutex *inMutex) const override |
Batch locking functions | |
virtual MutexMask | GetMutexMask (const BodyID *inBodies, int inNumber) const override |
virtual void | LockRead (MutexMask inMutexMask) const override |
virtual void | UnlockRead (MutexMask inMutexMask) const override |
virtual void | LockWrite (MutexMask inMutexMask) const override |
virtual void | UnlockWrite (MutexMask inMutexMask) const override |
Public Member Functions inherited from BodyLockInterface | |
BodyLockInterface (BodyManager &inBodyManager) | |
Constructor. | |
virtual | ~BodyLockInterface ()=default |
MutexMask | GetAllBodiesMutexMask () const |
Get the mask needed to lock all bodies. | |
Body * | TryGetBody (const BodyID &inBodyID) const |
Convert body ID to body. | |
Public Member Functions inherited from NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
void | operator= (const NonCopyable &)=delete |
Additional Inherited Members | |
Public Types inherited from BodyLockInterface | |
using | MutexMask = BodyManager::MutexMask |
Redefine MutexMask. | |
Protected Attributes inherited from BodyLockInterface | |
BodyManager & | mBodyManager |
Implementation that performs no locking (assumes the lock has already been taken)
|
inlineexplicit |
Constructor.
|
inlineoverridevirtual |
Implements BodyLockInterface.
|
inlineoverridevirtual |
Implements BodyLockInterface.
|
inlineoverridevirtual |
Implements BodyLockInterface.
|
inlineoverridevirtual |
Implements BodyLockInterface.
|
inlineoverridevirtual |
Implements BodyLockInterface.
|
inlineoverridevirtual |
Implements BodyLockInterface.
|
inlineoverridevirtual |
Implements BodyLockInterface.
|
inlineoverridevirtual |
Implements BodyLockInterface.
|
inlineoverridevirtual |
Implements BodyLockInterface.