OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ConcurrencyChecker Class Reference

#include <task_annotations.h>

Public Member Functions

 ConcurrencyChecker ()
 
 ConcurrencyChecker (const char *task_ids[], size_t count)
 
void Check ()
 
void CheckIfMainThr ()
 

Static Public Member Functions

static bool IsInMainThr ()
 

Static Public Attributes

static bool enable_
 

Private Types

typedef std::set< int > TaskIdSet
 

Private Attributes

TaskIdSet id_set_
 

Detailed Description

Definition at line 15 of file task_annotations.h.

Member Typedef Documentation

typedef std::set<int> ConcurrencyChecker::TaskIdSet
private

Definition at line 24 of file task_annotations.h.

Constructor & Destructor Documentation

ConcurrencyChecker::ConcurrencyChecker ( )

Definition at line 20 of file task_annotations.cc.

ConcurrencyChecker::ConcurrencyChecker ( const char *  task_ids[],
size_t  count 
)

Definition at line 13 of file task_annotations.cc.

Here is the call graph for this function:

Member Function Documentation

void ConcurrencyChecker::Check ( )

Definition at line 23 of file task_annotations.cc.

Here is the call graph for this function:

void ConcurrencyChecker::CheckIfMainThr ( )

Definition at line 29 of file task_annotations.cc.

Here is the call graph for this function:

static bool ConcurrencyChecker::IsInMainThr ( )
inlinestatic

Definition at line 22 of file task_annotations.h.

Here is the call graph for this function:

Member Data Documentation

bool ConcurrencyChecker::enable_
static
Initial value:
= getenv("CONCURRENCY_CHECK_ENABLE") != NULL &&
!strcasecmp(getenv("CONCURRENCY_CHECK_ENABLE"), "true")

Definition at line 17 of file task_annotations.h.

TaskIdSet ConcurrencyChecker::id_set_
private

Definition at line 25 of file task_annotations.h.


The documentation for this class was generated from the following files: