libcommonc++  0.7
ScopedLock.h++ File Reference
Include dependency graph for ScopedLock.h++:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ScopedLock
 A convenience object for lexical scope based synchronization. More...
 

Namespaces

 ccxx
 

Macros

#define synchronized(LOCK)
 Introduce a code block that is protected by the Lock LOCK. More...
 

Macro Definition Documentation

◆ synchronized

#define synchronized (   LOCK)
Value:
CCXX_UNIQUE_VARNAME(LOCK, __LINE__, locker)(LOCK); \
CCXX_UNIQUE_VARNAME(LOCK, __LINE__, locker).testOnce();)
A convenience object for lexical scope based synchronization.
Definition: ScopedLock.h++:50
#define CCXX_UNIQUE_VARNAME(pfx, id, sfx)
Definition: Common.h++:279

Introduce a code block that is protected by the Lock LOCK.