Electroneum
syncobj.h File Reference
#include <boost/chrono/duration.hpp>
#include <boost/thread/condition_variable.hpp>
#include <boost/thread/locks.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/recursive_mutex.hpp>
#include <boost/thread/thread.hpp>
Include dependency graph for syncobj.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  epee::simple_event
 
class  epee::critical_section
 
class  epee::critical_region_t< t_lock >
 

Namespaces

 epee
 
 epee::debug
 

Macros

#define SHARED_CRITICAL_REGION_BEGIN(x)   { shared_guard critical_region_var(x)
 
#define EXCLUSIVE_CRITICAL_REGION_BEGIN(x)   { exclusive_guard critical_region_var(x)
 
#define CRITICAL_REGION_LOCAL(x)   {boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep()));} epee::critical_region_t<decltype(x)> critical_region_var(x)
 
#define CRITICAL_REGION_BEGIN(x)   { boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep())); epee::critical_region_t<decltype(x)> critical_region_var(x)
 
#define CRITICAL_REGION_LOCAL1(x)   {boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep()));} epee::critical_region_t<decltype(x)> critical_region_var1(x)
 
#define CRITICAL_REGION_BEGIN1(x)   { boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep())); epee::critical_region_t<decltype(x)> critical_region_var1(x)
 
#define CRITICAL_REGION_END()   }
 

Functions

unsigned int & epee::debug::g_test_dbg_lock_sleep ()
 

Macro Definition Documentation

◆ CRITICAL_REGION_BEGIN

#define CRITICAL_REGION_BEGIN (   x)    { boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep())); epee::critical_region_t<decltype(x)> critical_region_var(x)

Definition at line 229 of file syncobj.h.

◆ CRITICAL_REGION_BEGIN1

#define CRITICAL_REGION_BEGIN1 (   x)    { boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep())); epee::critical_region_t<decltype(x)> critical_region_var1(x)

Definition at line 231 of file syncobj.h.

◆ CRITICAL_REGION_END

#define CRITICAL_REGION_END ( )    }

Definition at line 233 of file syncobj.h.

◆ CRITICAL_REGION_LOCAL

#define CRITICAL_REGION_LOCAL (   x)    {boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep()));} epee::critical_region_t<decltype(x)> critical_region_var(x)

Definition at line 228 of file syncobj.h.

◆ CRITICAL_REGION_LOCAL1

#define CRITICAL_REGION_LOCAL1 (   x)    {boost::this_thread::sleep_for(boost::chrono::milliseconds(epee::debug::g_test_dbg_lock_sleep()));} epee::critical_region_t<decltype(x)> critical_region_var1(x)

Definition at line 230 of file syncobj.h.

◆ EXCLUSIVE_CRITICAL_REGION_BEGIN

#define EXCLUSIVE_CRITICAL_REGION_BEGIN (   x)    { exclusive_guard critical_region_var(x)

Definition at line 226 of file syncobj.h.

◆ SHARED_CRITICAL_REGION_BEGIN

#define SHARED_CRITICAL_REGION_BEGIN (   x)    { shared_guard critical_region_var(x)

Definition at line 225 of file syncobj.h.