nvidia::apex::WriteLock Class Reference
RAII wrapper for the Scene write lock. More...
#include <Lock.h>
Public Member Functions | |
WriteLock (const ApexInterface &lockable, const char *file=NULL, uint32_t line=0) | |
Constructor. |
Detailed Description
RAII wrapper for the Scene write lock.
Use this class as follows to lock the scene for writing by the current thread for the duration of the enclosing scope:
WriteLock lock(sceneRef);
- See also:
- Scene::apexacquireWriteLock(), Scene::apexUnacquireWriteLock(), SceneDesc::useRWLock
Constructor & Destructor Documentation
nvidia::apex::WriteLock::WriteLock | ( | const ApexInterface & | lockable, |
const char * | file = NULL , |
||
uint32_t | line = 0 |
||
) | [inline] |
Constructor.
- Parameters:
-
lockable The object to lock for writing file Optional string for debugging purposes line Optional line number for debugging purposes
The documentation for this class was generated from the following file:
Generated on Fri Dec 15 2017 13:58:39
Copyright © 2012-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.