![]() |
Jolt Physics
A multi core friendly Game Physics Engine
|
Implementation that uses the body manager to lock the correct mutex for a body. 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 uses the body manager to lock the correct mutex for a body.
|
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.