Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Select_Reactor.h
blob84eba7b747f106b49c2573d527fca0ca76e06517
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Select_Reactor.h
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
8 */
9 //=============================================================================
11 #ifndef ACE_SELECT_REACTOR_H
12 #define ACE_SELECT_REACTOR_H
13 #include /**/ "ace/pre.h"
15 #include "ace/Select_Reactor_T.h"
16 #include "ace/Reactor_Token_T.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
24 typedef ACE_Reactor_Token_T<ACE_SELECT_TOKEN> ACE_Select_Reactor_Token;
25 #if defined ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT
26 template class ACE_Export ACE_Select_Reactor_T<ACE_Select_Reactor_Token>;
27 #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT */
29 typedef ACE_Select_Reactor_T<ACE_Select_Reactor_Token> ACE_Select_Reactor;
31 #if defined (ACE_MT_SAFE) && (ACE_MT_SAFE == 0)
32 // FUZZ: disable check_for_ACE_Guard
33 /**
34 * @class ACE_Guard< ACE_Reactor_Token_T<ACE_Noop_Token> >
36 * @brief Template specialization of ACE_Guard for the
37 * ACE_Null_Mutex.
39 * This specialization is useful since it helps to speedup
40 * performance of the "Null_Mutex" considerably.
42 template<>
43 class ACE_Export ACE_Guard< ACE_Reactor_Token_T<ACE_Noop_Token> >
45 public:
46 ACE_Guard (ACE_Reactor_Token_T<ACE_Noop_Token> &) {}
47 ACE_Guard (ACE_Reactor_Token_T<ACE_Noop_Token> &, int) {}
48 ~ACE_Guard () = default;
50 int acquire () { return 0; }
51 int tryacquire () { return 0; }
52 int release () { return 0; }
53 int locked () { return 1; }
54 int remove () { return 0; }
55 void dump () const {}
57 private:
58 ACE_Guard (const ACE_Guard< ACE_Reactor_Token_T<ACE_Noop_Token> > &) = delete;
59 void operator= (const ACE_Guard< ACE_Reactor_Token_T<ACE_Noop_Token> > &) = delete;
60 ACE_Guard (ACE_Guard<ACE_Reactor_Token_T<ACE_Noop_Token> > &&) = delete;
61 void operator= (ACE_Guard<ACE_Reactor_Token_T<ACE_Noop_Token> > &&) = delete;
63 // FUZZ: enable check_for_ACE_Guard
64 #endif /* ACE_MT_SAFE && ACE_MT_SAFE == 0 */
66 ACE_END_VERSIONED_NAMESPACE_DECL
68 #include /**/ "ace/post.h"
69 #endif /* ACE_SELECT_REACTOR_H */