ScopedLock.h++ File Reference

#include <commonc++/Common.h++>
#include <commonc++/Lock.h++>
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

namespace  ccxx

Defines

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

Define Documentation

#define synchronized ( LOCK   ) 
Value:
for(ccxx::ScopedLock                                          \
        CCXX_UNIQUE_VARNAME(LOCK, __LINE__, locker)(LOCK);      \
      CCXX_UNIQUE_VARNAME(LOCK, __LINE__, locker).testOnce();)

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

Generated on Sat Nov 26 16:49:08 2011 for libcommonc++ by  doxygen 1.6.3