OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
task_annotations.h File Reference
#include <stdlib.h>
#include <set>
#include <string>
#include <boost/scoped_ptr.hpp>
#include "base/task.h"
Include dependency graph for task_annotations.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ConcurrencyChecker
 
class  ConcurrencyScope
 

Macros

#define CHECK_CONCURRENCY(...)
 
#define CHECK_CONCURRENCY_MAIN_THR()
 

Macro Definition Documentation

#define CHECK_CONCURRENCY (   ...)
Value:
do { \
const char *_X_array[] = { __VA_ARGS__ }; \
ConcurrencyChecker checker( \
_X_array, sizeof(_X_array) / sizeof(char *)); \
checker.Check(); \
} while (0)

Definition at line 39 of file task_annotations.h.

#define CHECK_CONCURRENCY_MAIN_THR ( )
Value:
do { \
ConcurrencyChecker checker; \
checker.CheckIfMainThr(); \
} while (0)

Definition at line 48 of file task_annotations.h.