summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/PollableCondition.h
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2009-03-12 20:55:34 +0000
committerStephen D. Huston <shuston@apache.org>2009-03-12 20:55:34 +0000
commit0398410e8894287da530cfb63d6344817445bfc2 (patch)
treee4d789cd965f25c8fb0a51e1cf71df0a5330e73b /cpp/src/qpid/sys/PollableCondition.h
parent47db7ebfc533d2dc8a3dfc3b9d1273730b8779e6 (diff)
downloadqpid-python-0398410e8894287da530cfb63d6344817445bfc2.tar.gz
Changes to build DLLs instead of static libs on Windows; primarily added decorators to exported names. Fixes QPID-1673
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@753014 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/PollableCondition.h')
-rw-r--r--cpp/src/qpid/sys/PollableCondition.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/cpp/src/qpid/sys/PollableCondition.h b/cpp/src/qpid/sys/PollableCondition.h
index 49e84e6cb0..f49fb22cb4 100644
--- a/cpp/src/qpid/sys/PollableCondition.h
+++ b/cpp/src/qpid/sys/PollableCondition.h
@@ -23,6 +23,7 @@
*/
#include "qpid/sys/Poller.h"
+#include "qpid/CommonImportExport.h"
#include <boost/function.hpp>
#include <boost/shared_ptr.hpp>
@@ -36,35 +37,35 @@ class PollableCondition {
public:
typedef boost::function1<void, PollableCondition&> Callback;
- PollableCondition(const Callback& cb,
+ QPID_COMMON_EXTERN PollableCondition(const Callback& cb,
const boost::shared_ptr<sys::Poller>& poller);
- ~PollableCondition();
+ QPID_COMMON_EXTERN ~PollableCondition();
/**
* Set the condition. Triggers callback to Callback from Poller.
* When callback is made, condition is suspended. Call rearm() to
* resume reacting to the condition.
*/
- void set();
+ QPID_COMMON_EXTERN void set();
/**
* Get the current state of the condition, then clear it.
*
* @return The state of the condition before it was cleared.
*/
- bool clear();
+ QPID_COMMON_EXTERN bool clear();
/**
* Temporarily suspend the ability for the poller to react to the
* condition. It can be rearm()ed later.
*/
- void disarm();
+ QPID_COMMON_EXTERN void disarm();
/**
* Reset the ability for the poller to react to the condition.
*/
- void rearm();
+ QPID_COMMON_EXTERN void rearm();
private:
PollableConditionPrivate *impl;