#include <event.h>

Inheritance diagram for EventScheduler:
Collaboration diagram for EventScheduler:

Public Types

enum  CheckError {
  EVENT_IDLE = -1,
  EVENT_ERROR = -2
}
 

Public Member Functions

 EventScheduler ()
 
 ~EventScheduler ()
 
void cancel (EVH *func, void *arg)
 
void clean ()
 
int timeRemaining () const
 
void dump (StoreEntry *)
 
bool find (EVH *func, void *arg)
 
void schedule (const char *name, EVH *func, void *arg, double when, int weight, bool cbdata=true)
 
int checkEvents (int timeout)
 

Static Public Member Functions

static EventSchedulerGetInstance ()
 

Private Attributes

ev_entrytasks
 

Static Private Attributes

static EventScheduler _instance
 

Detailed Description

Definition at line 47 of file event.h.

Member Enumeration Documentation

enum AsyncEngine::CheckError
inherited
Enumerator
EVENT_IDLE 
EVENT_ERROR 

Definition at line 26 of file AsyncEngine.h.

Constructor & Destructor Documentation

EventScheduler::EventScheduler ( )

Definition at line 162 of file event.cc.

EventScheduler::~EventScheduler ( )

Definition at line 165 of file event.cc.

References clean().

Member Function Documentation

void EventScheduler::cancel ( EVH func,
void *  arg 
)

Definition at line 171 of file event.cc.

References ev_entry::arg, debug_trap(), E, ev_entry::func, ev_entry::next, NULL, and tasks.

Referenced by eventDelete(), and testEvent::testCancel().

int EventScheduler::checkEvents ( int  timeout)
virtual
void EventScheduler::clean ( )

Definition at line 263 of file event.cc.

References ev_entry::next, NULL, and tasks.

Referenced by eventFreeMemory(), and ~EventScheduler().

bool EventScheduler::find ( EVH func,
void *  arg 
)

Definition at line 297 of file event.cc.

References ev_entry::arg, ev_entry::func, NULL, and tasks.

Referenced by eventFind(), and testEvent::testFind().

EventScheduler * EventScheduler::GetInstance ( )
static
void EventScheduler::schedule ( const char *  name,
EVH func,
void *  arg,
double  when,
int  weight,
bool  cbdata = true 
)
int EventScheduler::timeRemaining ( ) const

Definition at line 209 of file event.cc.

References current_dtime, AsyncEngine::EVENT_IDLE, max(), tasks, and ev_entry::when.

Referenced by checkEvents().

Member Data Documentation

EventScheduler EventScheduler::_instance
staticprivate

Definition at line 69 of file event.h.

Referenced by GetInstance().

ev_entry* EventScheduler::tasks
private

Definition at line 70 of file event.h.

Referenced by cancel(), checkEvents(), clean(), dump(), find(), schedule(), and timeRemaining().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors