Monero
Loading...
Searching...
No Matches
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)
#define CRITICAL_REGION_BEGIN(x)
#define CRITICAL_REGION_LOCAL1(x)
#define CRITICAL_REGION_BEGIN1(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)
Value:
{ 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 syncobj.h:125
unsigned int & g_test_dbg_lock_sleep()
Definition syncobj.h:45

◆ CRITICAL_REGION_BEGIN1

#define CRITICAL_REGION_BEGIN1 ( x)
Value:
{ 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 ( )
Value:
}

◆ CRITICAL_REGION_LOCAL

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

◆ CRITICAL_REGION_LOCAL1

#define CRITICAL_REGION_LOCAL1 ( x)
Value:
{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)