diff options
| author | Alan Conway <aconway@apache.org> | 2008-09-12 21:25:16 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-09-12 21:25:16 +0000 |
| commit | f4d41ffa199e149b72f717038a7bc088974fa27a (patch) | |
| tree | 029c5663bc05e872979630a1d9009366b1d79736 /cpp/src/qpid/sys/PollableCondition.h | |
| parent | 1a859715334e23559bd3d68181aec1ca6a778e5e (diff) | |
| download | qpid-python-f4d41ffa199e149b72f717038a7bc088974fa27a.tar.gz | |
Moved PollableCondition into sys/posix, posix only impl.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@694812 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/PollableCondition.h')
| -rw-r--r-- | cpp/src/qpid/sys/PollableCondition.h | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/cpp/src/qpid/sys/PollableCondition.h b/cpp/src/qpid/sys/PollableCondition.h index 6f0e12a474..56d38f90da 100644 --- a/cpp/src/qpid/sys/PollableCondition.h +++ b/cpp/src/qpid/sys/PollableCondition.h @@ -22,39 +22,7 @@ * */ -#include "qpid/sys/IOHandle.h" - -// FIXME aconway 2008-08-11: this could be of more general interest, -// move to sys namespace in common lib. -// - -namespace qpid { -namespace sys { - -/** - * 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. - */ -class PollableCondition : public sys::IOHandle { - public: - PollableCondition(); - - /** Set the condition, triggers readable in a poller. */ - void set(); - - /** Get the current state of the condition, then clear it. - *@return The state of the condition before it was cleared. - */ - bool clear(); - - private: - int writeFd; -}; -}} // namespace qpid::sys +// Currently only has a posix implementation, add #ifdefs for other platforms as needed. +#include "posix/PollableCondition.h" #endif /*!QPID_SYS_POLLABLECONDITION_H*/ |
