Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Select_Reactor.h

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    Select_Reactor.h
00006  *
00007  *  $Id: Select_Reactor.h,v 1.1.1.4 2003/02/21 18:36:32 chad Exp $
00008  *
00009  *  @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
00010  */
00011 //=============================================================================
00012 
00013 #ifndef ACE_SELECT_REACTOR_H
00014 #define ACE_SELECT_REACTOR_H
00015 #include "ace/pre.h"
00016 
00017 #include "ace/Select_Reactor_T.h"
00018 
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 # pragma once
00021 #endif /* ACE_LACKS_PRAGMA_ONCE */
00022 
00023 typedef ACE_Select_Reactor_Token_T<ACE_SELECT_TOKEN> ACE_Select_Reactor_Token;
00024 
00025 typedef ACE_Select_Reactor_T<ACE_Select_Reactor_Token> ACE_Select_Reactor;
00026 ACE_TEMPLATE_SPECIALIZATION
00027 
00028 /**
00029  * @class ACE_Guard< ACE_Select_Reactor_Token_T<ACE_Noop_Token> >
00030  *
00031  * @brief Template specialization of <ACE_Guard> for the
00032  * <ACE_Null_Mutex>.
00033  *
00034  * This specialization is useful since it helps to speedup
00035  * performance of the "Null_Mutex" considerably.
00036  */
00037 class ACE_Export ACE_Guard< ACE_Select_Reactor_Token_T<ACE_Noop_Token> >
00038 {
00039 public:
00040   // = Initialization and termination methods.
00041   ACE_Guard (ACE_Select_Reactor_Token_T<ACE_Noop_Token> &) {}
00042   ACE_Guard (ACE_Select_Reactor_Token_T<ACE_Noop_Token> &, int) {}
00043   ~ACE_Guard (void) {}
00044 
00045   int acquire (void) { return 0; }
00046   int tryacquire (void) { return 0; }
00047   int release (void) { return 0; }
00048   int locked (void) { return 1; }
00049   int remove (void) { return 0; }
00050   void dump (void) const {}
00051 
00052 private:
00053   // = Prevent assignment and initialization.
00054   ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Guard< ACE_Select_Reactor_Token_T<ACE_Noop_Token> > &))
00055   ACE_UNIMPLEMENTED_FUNC (ACE_Guard (const ACE_Guard< ACE_Select_Reactor_Token_T<ACE_Noop_Token> > &))
00056 };
00057 
00058 #include "ace/post.h"
00059 #endif /* ACE_SELECT_REACTOR_H */

Generated on Mon Jun 16 11:21:07 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002