pub unsafe extern "C" fn PxScene_lockRead_mut(
    self_: *mut PxScene,
    file: *const c_char,
    line: u32
)
Expand description

Lock the scene for reading from the calling thread.

When the PxSceneFlag::eREQUIRE_RW_LOCK flag is enabled lockRead() must be called before any read calls are made on the scene.

Multiple threads may read at the same time, no threads may read while a thread is writing. If a call to lockRead() is made while another thread is holding a write lock then the calling thread will be blocked until the writing thread calls unlockWrite().

Lock upgrading is not supported, that means it is an error to call lockRead() followed by lockWrite().

Recursive locking is supported but each lockRead() call must be paired with an unlockRead().