diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
commit | c44379cc7d9c7aa113989237ab0f56db12aa5219 (patch) | |
tree | 66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/examples/Logger/simple-server/Reactor_Singleton.h | |
parent | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff) | |
download | ATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz |
Repo restructuring
Diffstat (limited to 'ACE/examples/Logger/simple-server/Reactor_Singleton.h')
-rw-r--r-- | ACE/examples/Logger/simple-server/Reactor_Singleton.h | 33 |
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 */ |