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

OS_Errno.cpp

Go to the documentation of this file.
00001 #include "ace_pch.h"
00002 // -*- C++ -*-
00003 // $Id: OS_Errno.cpp,v 1.1.1.2.2.1 2003/03/13 19:44:21 chad Exp $
00004 
00005 #include "ace/OS_Errno.h"
00006 
00007 ACE_RCSID(ace, OS_Errno, "$Id: OS_Errno.cpp,v 1.1.1.2.2.1 2003/03/13 19:44:21 chad Exp $")
00008 
00009 #if !defined (ACE_HAS_INLINED_OSCALLS)
00010 # include "ace/OS_Errno.inl"
00011 #endif /* ACE_HAS_INLINED_OS_CALLS */
00012 
00013 #if defined (ACE_HAS_WINCE_BROKEN_ERRNO)
00014 
00015 #include "ace/OS_Memory.h"
00016 
00017 ACE_CE_Errno *ACE_CE_Errno::instance_ = 0;
00018 DWORD ACE_CE_Errno::errno_key_ = 0xffffffff;
00019 
00020 void
00021 ACE_CE_Errno::init ()
00022 {
00023   ACE_NEW (ACE_CE_Errno::instance_,
00024            ACE_CE_Errno ());
00025   ACE_CE_Errno::errno_key_ = TlsAlloc ();
00026 }
00027 
00028 void
00029 ACE_CE_Errno::fini ()
00030 {
00031   TlsFree (ACE_CE_Errno::errno_key_);
00032   delete ACE_CE_Errno::instance_;
00033   ACE_CE_Errno::instance_ = 0;
00034 }
00035 
00036 #endif /* ACE_HAS_WINCE_BROKEN_ERRNO */

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