summaryrefslogtreecommitdiff
path: root/trunk/TAO/tao/LF_Event.inl
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tao/LF_Event.inl')
-rw-r--r--trunk/TAO/tao/LF_Event.inl37
1 files changed, 37 insertions, 0 deletions
diff --git a/trunk/TAO/tao/LF_Event.inl b/trunk/TAO/tao/LF_Event.inl
new file mode 100644
index 00000000000..236c8ea69ac
--- /dev/null
+++ b/trunk/TAO/tao/LF_Event.inl
@@ -0,0 +1,37 @@
+// -*- C++ -*-
+//
+// $Id$
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+ACE_INLINE int
+TAO_LF_Event::bind (TAO_LF_Follower *follower)
+{
+ if (this->follower_ != 0)
+ return -1;
+ this->follower_ = follower;
+ return 0;
+}
+
+ACE_INLINE int
+TAO_LF_Event::unbind (void)
+{
+ if (this->follower_ == 0)
+ return -1;
+ this->follower_ = 0;
+ return 0;
+}
+
+ACE_INLINE void
+TAO_LF_Event::reset_state (int new_state)
+{
+ this->state_ = new_state;
+}
+
+ACE_INLINE int
+TAO_LF_Event::keep_waiting (void)
+{
+ return (this->successful () == 0) && (this->error_detected () == 0);
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL