Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
PhysicsLock Class Reference

#include <PhysicsLock.h>

Static Public Member Functions

template<class LockType >
static void sLock (LockType &inMutex JPH_IF_ENABLE_ASSERTS(, PhysicsLockContext inContext, EPhysicsLockTypes inType))
 
template<class LockType >
static void sUnlock (LockType &inMutex JPH_IF_ENABLE_ASSERTS(, PhysicsLockContext inContext, EPhysicsLockTypes inType))
 
template<class LockType >
static void sLockShared (LockType &inMutex JPH_IF_ENABLE_ASSERTS(, PhysicsLockContext inContext, EPhysicsLockTypes inType))
 
template<class LockType >
static void sUnlockShared (LockType &inMutex JPH_IF_ENABLE_ASSERTS(, PhysicsLockContext inContext, EPhysicsLockTypes inType))
 

Detailed Description

Helpers to safely lock the different mutexes that are part of the physics system while preventing deadlock Class that keeps track per thread which lock are taken and if the order of locking is correct

Member Function Documentation

◆ sLock()

template<class LockType >
static void PhysicsLock::sLock ( LockType &inMutex   JPH_IF_ENABLE_ASSERTS, PhysicsLockContext inContext, EPhysicsLockTypes inType)
inlinestatic

◆ sLockShared()

template<class LockType >
static void PhysicsLock::sLockShared ( LockType &inMutex   JPH_IF_ENABLE_ASSERTS, PhysicsLockContext inContext, EPhysicsLockTypes inType)
inlinestatic

◆ sUnlock()

template<class LockType >
static void PhysicsLock::sUnlock ( LockType &inMutex   JPH_IF_ENABLE_ASSERTS, PhysicsLockContext inContext, EPhysicsLockTypes inType)
inlinestatic

◆ sUnlockShared()

template<class LockType >
static void PhysicsLock::sUnlockShared ( LockType &inMutex   JPH_IF_ENABLE_ASSERTS, PhysicsLockContext inContext, EPhysicsLockTypes inType)
inlinestatic

The documentation for this class was generated from the following file: