qpid::sys::PollableCondition Class Reference

A pollable condition to integrate in-process conditions with IO conditions in a polling loop. More...

#include <PollableCondition.h>

Inherits qpid::sys::IOHandle.

List of all members.

Public Member Functions

void set ()
 Set the condition, triggers readable in a poller.
bool clear ()
 Get the current state of the condition, then clear it.


Detailed Description

A pollable condition to integrate in-process conditions with IO conditions in a polling loop.

Setting the condition makes it readable for a poller.

Writable/disconnected conditions are undefined and should not be polled for.

Definition at line 39 of file PollableCondition.h.


Member Function Documentation

void qpid::sys::PollableCondition::set (  ) 

Set the condition, triggers readable in a poller.

Referenced by qpid::sys::PollableQueue< T >::push(), and qpid::sys::PollableQueue< T >::start().

bool qpid::sys::PollableCondition::clear (  ) 

Get the current state of the condition, then clear it.

Returns:
The state of the condition before it was cleared.


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

Generated on Thu Oct 16 13:38:40 2008 for Qpid by  doxygen 1.5.6