11#ifdef JPH_ENABLE_ASSERTS
35#ifdef JPH_ENABLE_ASSERTS
53 template <
class LockType>
60 template <
class LockType>
67 template <
class LockType>
74 template <
class LockType>
81#ifdef JPH_ENABLE_ASSERTS
104 return l.mLockedMutexes;
107 JPH_ASSERT(
false,
"Too many physics systems locked at the same time!");
108 return sLocks[0].mLockedMutexes;
114template <
class LockType>
135#ifdef JPH_ENABLE_ASSERTS
142template <
class LockType>
163#ifdef JPH_ENABLE_ASSERTS
#define JPH_NAMESPACE_END
Definition Core.h:367
std::uint32_t uint32
Definition Core.h:442
#define JPH_NAMESPACE_BEGIN
Definition Core.h:361
#define JPH_IF_ENABLE_ASSERTS(...)
Definition IssueReporting.h:35
#define JPH_ASSERT(...)
Definition IssueReporting.h:33
AllocateFunction Allocate
Definition Memory.cpp:59
Class that contains all bodies.
Definition BodyManager.h:32
Definition BroadPhaseQuery.h:29
Class that makes another class non-copyable. Usage: Inherit from NonCopyable.
Definition NonCopyable.h:11
Definition PhysicsLock.h:33
static void sLockShared(LockType &inMutex JPH_IF_ENABLE_ASSERTS(, PhysicsLockContext inContext, EPhysicsLockTypes inType))
Definition PhysicsLock.h:68
static void sUnlock(LockType &inMutex JPH_IF_ENABLE_ASSERTS(, PhysicsLockContext inContext, EPhysicsLockTypes inType))
Definition PhysicsLock.h:61
static void sUnlockShared(LockType &inMutex JPH_IF_ENABLE_ASSERTS(, PhysicsLockContext inContext, EPhysicsLockTypes inType))
Definition PhysicsLock.h:75
static void sLock(LockType &inMutex JPH_IF_ENABLE_ASSERTS(, PhysicsLockContext inContext, EPhysicsLockTypes inType))
Definition PhysicsLock.h:54
Helper class that is similar to std::shared_lock.
Definition PhysicsLock.h:144
SharedLock(LockType &inLock JPH_IF_ENABLE_ASSERTS(, PhysicsLockContext inContext, EPhysicsLockTypes inType))
Definition PhysicsLock.h:146
~SharedLock()
Definition PhysicsLock.h:156
Helper class that is similar to std::unique_lock.
Definition PhysicsLock.h:116
UniqueLock(LockType &inLock JPH_IF_ENABLE_ASSERTS(, PhysicsLockContext inContext, EPhysicsLockTypes inType))
Definition PhysicsLock.h:118
~UniqueLock()
Definition PhysicsLock.h:128