OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
task.cc File Reference
#include <assert.h>
#include <fstream>
#include <map>
#include <iostream>
#include <boost/intrusive/set.hpp>
#include <boost/optional.hpp>
#include "tbb/atomic.h"
#include "tbb/task.h"
#include "tbb/enumerable_thread_specific.h"
#include "base/logging.h"
#include "base/task.h"
#include "base/task_annotations.h"
#include "base/task_tbbkeepawake.h"
#include "base/task_monitor.h"
#include <base/sandesh/task_types.h>
Include dependency graph for task.cc:

Go to the source code of this file.

Classes

class  TaskImpl
 A private class used to implement tbb::task An object is created when task is ready for execution and registered with tbb::task. More...
 
class  TaskEntry
 A class maintaning information for every <task, instance> More...
 
struct  TaskDeferEntryCmp
 Comparison routine for the TaskDeferList. More...
 
class  TaskGroup
 TaskGroup maintains per <task-id> information including,. More...
 

Macros

#define TASK_TRACE(scheduler, task, msg, delay)
 

Typedefs

typedef
tbb::enumerable_thread_specific
< Task * > 
TaskInfo
 
typedef std::vector< TaskEntry * > TaskEntryList
 

Functions

ostream & operator<< (ostream &out, const Task &t)
 

Variables

static TaskInfo task_running
 

Macro Definition Documentation

#define TASK_TRACE (   scheduler,
  task,
  msg,
  delay 
)
Value:
do {\
scheduler->Log(__FILE__, __LINE__, task, msg, delay);\
} while (false)
struct task_ task

Definition at line 39 of file task.cc.

Typedef Documentation

typedef std::vector<TaskEntry *> TaskEntryList

Definition at line 35 of file task.cc.

typedef tbb::enumerable_thread_specific<Task *> TaskInfo

Definition at line 28 of file task.cc.

Function Documentation

ostream& operator<< ( ostream &  out,
const Task t 
)

Definition at line 1567 of file task.cc.

Variable Documentation

TaskInfo task_running
static

Definition at line 32 of file task.cc.