A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/SyncObj_8hpp_source.html below:

NCBI C++ ToolKit: include/objtools/pubseq_gateway/impl/cassandra/SyncObj.hpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

52  const function

<

bool

()> & is_done_cb,

53  const function

<

void

(

bool

*)> & update_rslt_cb);

66  void

DoWake(

int

waiters = INT_MAX);

76  bool

CompareExchange(

int expected

,

int

replace_with,

77  bool

wake_others =

true

)

80

memory_order_relaxed);

81  if

(rv && wake_others)

98  int

Set(

int value

,

bool

wake_others =

true

)

101  if

((rv !=

value

) && wake_others)

106  int

Inc(

bool

wake_others =

true

)

108  int

rv = atomic_fetch_add(&

m_Value

, 1);

114  int

Dec(

bool

wake_others =

true

)

116  int

rv = atomic_fetch_sub(&

m_Value

, 1);

124  int

rv = atomic_fetch_add(&

m_Value

, 1);

130  int

rv = atomic_fetch_sub(&

m_Value

, 1);

151  function

<

void

()> on_ctrl_c_pressed =

NULL

);

156  static CFutex

sm_CtrlCPressedEvent;

#define BEGIN_IDBLOB_SCOPE

bool WaitCondVar(unsigned int timeoutmks, CFastMutex &mtx, CConditionVariable &ev, const function< bool()> &is_done_cb, const function< void(bool *)> &update_rslt_cb)

Wrapper around Linux's futex.

CFutex & operator=(const CFutex &)

volatile int m_Value

Value of the futex.

EWaitResult

Type of result returned from WaitValueChange()

static unique_ptr< thread, function< void(thread *)> > sm_WatchThread

static bool s_CtrlCPressed(void)

static volatile sig_atomic_t sm_CtrlCPressed

SSignalHandler.

static function< void()> sm_OnCtrlCPressed

static volatile bool sm_Quit

static void s_WatchCtrlCPressed(bool enable, function< void()> on_ctrl_c_pressed=NULL)

static const char * expected[]

const GenericPointer< typename T::ValueType > T2 value

GenericValue< UTF8<> > Value

GenericValue with UTF8 encoding.

Multi-threading – classes, functions, and features.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4