RAII wrapper for the Scene read lock. More...
#include <Lock.h>
Public Member Functions | |
ReadLock (const ApexInterface &lockable, const char *file=NULL, uint32_t line=0) | |
Constructor. |
RAII wrapper for the Scene read lock.
Use this class as follows to lock the scene for reading by the current thread for the duration of the enclosing scope:
ReadLock lock(sceneRef);
nvidia::apex::ReadLock::ReadLock | ( | const ApexInterface & | lockable, |
const char * | file = NULL , |
||
uint32_t | line = 0 |
||
) | [inline] |
Constructor.
lockable | The object to lock for reading |
file | Optional string for debugging purposes |
line | Optional line number for debugging purposes |