Monero
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
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

namespace  epee
 TODO: (mj-xmr) This will be reduced in an another PR.
 
namespace  epee::debug
 

Macros

#define CRITICAL_REGION_LOCAL(x)   {} 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)

◆ 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)

◆ CRITICAL_REGION_END

#define CRITICAL_REGION_END ( )    }

◆ CRITICAL_REGION_LOCAL

#define CRITICAL_REGION_LOCAL ( x)    {} epee::critical_region_t<decltype(x)> critical_region_var(x)

◆ 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)