summaryrefslogtreecommitdiff
path: root/ACE/examples/Logger/simple-server/Reactor_Singleton.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/Logger/simple-server/Reactor_Singleton.h')
-rw-r--r--ACE/examples/Logger/simple-server/Reactor_Singleton.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/ACE/examples/Logger/simple-server/Reactor_Singleton.h b/ACE/examples/Logger/simple-server/Reactor_Singleton.h
new file mode 100644
index 00000000000..ec0653125a9
--- /dev/null
+++ b/ACE/examples/Logger/simple-server/Reactor_Singleton.h
@@ -0,0 +1,33 @@
+/* -*- C++ -*- */
+// $Id$
+
+
+// ============================================================================
+//
+// = LIBRARY
+// examples
+//
+// = FILENAME
+// Reactor_Singleton.h
+//
+// = AUTHOR
+// Doug Schmidt
+//
+// ============================================================================
+
+#ifndef _REACTOR_SINGLETON_H
+#define _REACTOR_SINGLETON_H
+
+#include "ace/Singleton.h"
+#include "ace/Null_Mutex.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/Reactor.h"
+
+// Our global Reactor Singleton.
+typedef ACE_Singleton<ACE_Reactor, ACE_Null_Mutex> REACTOR;
+
+#endif /* _REACTOR_SINGLETON_H */