summaryrefslogtreecommitdiff
path: root/TAO/tao/LF_Event.inl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/LF_Event.inl')
-rw-r--r--TAO/tao/LF_Event.inl18
1 files changed, 18 insertions, 0 deletions
diff --git a/TAO/tao/LF_Event.inl b/TAO/tao/LF_Event.inl
index 60ec3ca2cf6..569307442a8 100644
--- a/TAO/tao/LF_Event.inl
+++ b/TAO/tao/LF_Event.inl
@@ -34,4 +34,22 @@ TAO_LF_Event::keep_waiting (void)
return (this->successful () == 0) && (this->error_detected () == 0);
}
+ACE_INLINE const char *
+TAO_LF_Event::state_name (int st)
+{
+#define TAO_LF_EVENT_ENTRY(X) case X: return #X
+ switch (st)
+ {
+ TAO_LF_EVENT_ENTRY (LFS_IDLE);
+ TAO_LF_EVENT_ENTRY (LFS_ACTIVE);
+ TAO_LF_EVENT_ENTRY (LFS_CONNECTION_WAIT);
+ TAO_LF_EVENT_ENTRY (LFS_SUCCESS);
+ TAO_LF_EVENT_ENTRY (LFS_FAILURE);
+ TAO_LF_EVENT_ENTRY (LFS_TIMEOUT);
+ TAO_LF_EVENT_ENTRY (LFS_CONNECTION_CLOSED);
+ }
+ return "***Unknown enum value, update TAO_LF_Event::state_name()";
+#undef TAO_CACHE_INTID_ENTRY
+}
+
TAO_END_VERSIONED_NAMESPACE_DECL