summaryrefslogtreecommitdiff
path: root/examples/Logger/simple-server/Reactor_Singleton.h
blob: ec0653125a92f32b2cc94c14c613580cdda26313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 */