Classes | Public Member Functions | Protected Member Functions

Swift::SingleThreadedEventLoop Class Reference

Inheritance diagram for Swift::SingleThreadedEventLoop:
Collaboration diagram for Swift::SingleThreadedEventLoop:

List of all members.

Classes

class  EventLoopCanceledException

Public Member Functions

 SingleThreadedEventLoop ()
 ~SingleThreadedEventLoop ()
void waitForEvents ()
void handleEvents ()
void stop ()
virtual void post (const Event &event)
 Reimplement this to call handleEvent(event) from the thread in which the event loop is residing.
void postEvent (boost::function< void()> event, boost::shared_ptr< EventOwner > owner=boost::shared_ptr< EventOwner >())
void removeEventsFromOwner (boost::shared_ptr< EventOwner > owner)

Protected Member Functions

void handleEvent (const Event &event)

Detailed Description

Definition at line 36 of file SingleThreadedEventLoop.h.


Constructor & Destructor Documentation

Swift::SingleThreadedEventLoop::SingleThreadedEventLoop (  ) 
Swift::SingleThreadedEventLoop::~SingleThreadedEventLoop (  ) 

Member Function Documentation

void Swift::EventLoop::handleEvent ( const Event event  )  [protected, inherited]
void Swift::SingleThreadedEventLoop::handleEvents (  ) 
virtual void Swift::SingleThreadedEventLoop::post ( const Event event  )  [virtual]

Reimplement this to call handleEvent(event) from the thread in which the event loop is residing.

Implements Swift::EventLoop.

void Swift::EventLoop::postEvent ( boost::function< void()>  event,
boost::shared_ptr< EventOwner owner = boost::shared_ptr< EventOwner >() 
) [inherited]
void Swift::EventLoop::removeEventsFromOwner ( boost::shared_ptr< EventOwner owner  )  [inherited]
void Swift::SingleThreadedEventLoop::stop (  ) 
void Swift::SingleThreadedEventLoop::waitForEvents (  )