XDispatch 0.7.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Friends
xdispatch::synclock Class Reference

Provides an easy locking mechanism used to ensure the threadsafety of a code area. More...

#include <xdispatch/synchronized.h>

List of all members.

Public Member Functions

 synclock ()
 synclock (const synclock &)
 ~synclock ()
 operator bool () const
void unlock ()

Friends

synclock get_lock_for_key (const std::string &)
synclock get_lock_for_key (dispatch_semaphore_t)

Detailed Description

Provides an easy locking mechanism used to ensure the threadsafety of a code area.

See also:
synchronized
synchronize

Definition at line 53 of file synchronized.h.


Constructor & Destructor Documentation


Member Function Documentation

xdispatch::synclock::operator bool ( ) const

Friends And Related Function Documentation

synclock get_lock_for_key ( const std::string &  ) [friend]
See also:
synchronized

Definition at line 90 of file synchronized.h.


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

Generated on Tue Jun 12 2012 14:11:49 for XDispatch by Doxygen 1.8.0
© 2010-2012 MLBA (about | privacy) All Rights reserved.