OpenSDN source code
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

◆ TaskIdSet

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

Definition at line 24 of file task_annotations.h.

Constructor & Destructor Documentation

◆ ConcurrencyChecker() [1/2]

ConcurrencyChecker::ConcurrencyChecker ( )

Definition at line 20 of file task_annotations.cc.

◆ ConcurrencyChecker() [2/2]

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

◆ Check()

void ConcurrencyChecker::Check ( )

Definition at line 23 of file task_annotations.cc.

Here is the call graph for this function:

◆ CheckIfMainThr()

void ConcurrencyChecker::CheckIfMainThr ( )

Definition at line 29 of file task_annotations.cc.

Here is the call graph for this function:

◆ IsInMainThr()

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

◆ enable_

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.

◆ id_set_

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: