xtd 0.2.0
Loading...
Searching...
No Matches
lock_guard.h File Reference
#include "../object.h"
#include "../block_scope.h"
#include "monitor.h"

Definition

Contains xtd::threading::lock_guard class.

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

namespace  xtd
 The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
 
namespace  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)
 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.