Public Member Functions
nvidia::apex::WriteLock Class Reference

RAII wrapper for the Scene write lock. More...

#include <Lock.h>

List of all members.

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:
lockableThe object to lock for writing
fileOptional string for debugging purposes
lineOptional line number for debugging purposes

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

Generated on Sat Dec 1 2018 15:52:09

Copyright © 2012-2018 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.