xtd 0.2.0
lock_guard.h File Reference
#include "../object.h"
#include "../using.h"
#include "monitor.h"

Definition

Contains xtd::threading::lock_guard class.

Include dependency graph for lock_guard.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  xtd::threading::lock_guard
 Provides a mechanism that synchronizes access to objects with xtd::threading::monitor. More...
 

Namespaces

 xtd
 The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
 
 xtd::threading
 The xtd::threading namespace provides classes and interfaces that enable multithreaded programming. In addition to classes for synchronizing thread activities and access to data ( xtd::threading::mutex, xtd::threading::monitor, xtd::threading::interlocked, xtd::threading::auto_reset_event, and so on), this namespace includes a xtd::threading::thread_pool class that allows you to use a pool of system-supplied threads, and a xtd::threading::timer class that executes callback methods on thread pool threads.
 

Macros

#define lock_guard_(object)   using_ (xtd::threading::lock_guard __xtd_lock_guard__(object))
 The lock_guard_ keyword marks a statement block as a critical section by obtaining the mutual-exclusion lock for a given object, executing a statement, and then releasing the lock. The following example includes a lock statement. More...