#include <PxSync.h>
|
| bool | wait (uint32_t milliseconds=waitForever) |
| |
| void | set () |
| |
| void | reset () |
| |
|
|
static const uint32_t | waitForever = 0xffffffff |
| |
Implementation notes:
- Calling set() on an already signaled Sync does not change its state.
- Calling reset() on an already reset Sync does not change its state.
- Calling set() on a reset Sync wakes all waiting threads (potential for thread contention).
- Calling wait() on an already signaled Sync will return true immediately.
- NOTE: be careful when pulsing an event with set() followed by reset(), because a thread that is not waiting on the event will miss the signal.
◆ getSize()
| uint32_t physx::PxSyncImpl::getSize |
( |
| ) |
|
|
static |
◆ reset()
| void physx::PxSyncImpl::reset |
( |
| ) |
|
Reset the synchronization object
◆ set()
| void physx::PxSyncImpl::set |
( |
| ) |
|
Signal the synchronization object, waking all threads waiting on it
◆ wait()
| bool physx::PxSyncImpl::wait |
( |
uint32_t |
milliseconds = waitForever | ) |
|
Wait on the object for at most the given number of ms. Returns true if the object is signaled. Sync::waitForever will block forever or until the object is signaled.
The documentation for this class was generated from the following files:
- RavEngine/deps/physx/physx/include/foundation/PxSync.h
- RavEngine/deps/physx/physx/source/foundation/unix/FdUnixSync.cpp
- RavEngine/deps/physx/physx/source/foundation/windows/FdWindowsSync.cpp