2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
5 ACE_Errno_Guard::ACE_Errno_Guard (ACE_ERRNO_TYPE &errno_ref,
8 #if defined (ACE_MT_SAFE)
9 errno_ptr_ (&errno_ref),
10 #endif /* ACE_MT_SAFE */
13 #if !defined(ACE_MT_SAFE)
14 ACE_UNUSED_ARG (errno_ref);
15 #endif /* ACE_MT_SAFE */
19 ACE_Errno_Guard::ACE_Errno_Guard (ACE_ERRNO_TYPE &errno_ref)
21 #if defined (ACE_MT_SAFE)
22 errno_ptr_ (&errno_ref),
23 #endif /* ACE_MT_SAFE */
29 ACE_Errno_Guard::~ACE_Errno_Guard ()
31 #if defined (ACE_MT_SAFE)
32 *errno_ptr_ = this->error_;
35 #endif /* ACE_MT_SAFE */
39 ACE_Errno_Guard::operator= (int error)
41 return this->error_ = error;
45 ACE_Errno_Guard::operator== (int error)
47 return this->error_ == error;
51 ACE_Errno_Guard::operator!= (int error)
53 return this->error_ != error;
56 ACE_END_VERSIONED_NAMESPACE_DECL