Revised OpenFlow Library  v0.6.0dev
 All Classes Files Functions Variables Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
rofl::cioloop Class Reference

Defines an IO service loop for a single thread. More...

#include <ciosrv.h>

Public Member Functions

void run ()
 
void stop ()
 Terminates cioloop instance running in thread identified by this->tid.
 
void shutdown ()
 Terminates all running cioloop instances.
 
pthread_t get_tid () const
 

Static Public Member Functions

static cioloopget_loop (pthread_t tid=0)
 Returns reference to cioloop instance identified by thread id or if none is specified, cioloop of local thread.
 
static void drop_loop (pthread_t tid)
 Drop.
 

Protected Member Functions

void add_readfd (ciosrv *iosrv, int fd)
 
void drop_readfd (ciosrv *iosrv, int fd)
 
void add_writefd (ciosrv *iosrv, int fd)
 
void drop_writefd (ciosrv *iosrv, int fd)
 
void has_timer (ciosrv *iosrv)
 
void has_no_timer (ciosrv *iosrv)
 
void has_event (ciosrv *iosrv)
 
void has_no_event (ciosrv *iosrv)
 

Friends

class ciosrv
 
std::ostream & operator<< (std::ostream &os, cioloop const &ioloop)
 

Detailed Description

Defines an IO service loop for a single thread.


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