ACE_OS::ace_flock_t Class Reference

OS file locking structure. More...

#include <OS_NS_stdio.h>

List of all members.

Public Member Functions

void dump (void) const
 Dump state of the object.

Public Attributes

flock lock_
const ACE_TCHARlockname_
 Name of this filelock.
ACE_HANDLE handle_
 Handle to the underlying file.


Detailed Description

OS file locking structure.

Definition at line 161 of file OS_NS_stdio.h.


Member Function Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL void ACE_OS::ace_flock_t::dump ( void   )  const

Dump state of the object.

Definition at line 46 of file OS_NS_stdio.cpp.

References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_OS_TRACE, ACE_TEXT, and LM_DEBUG.

00047 {
00048 #if defined (ACE_HAS_DUMP)
00049   ACE_OS_TRACE ("ACE_OS::ace_flock_t::dump");
00050 
00051 # if 0
00052   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00053   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("handle_ = %u"), this->handle_));
00054 #   if defined (ACE_WIN32)
00055   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nInternal = %d"),
00056               this->overlapped_.Internal));
00057   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nInternalHigh = %d"),
00058               this->overlapped_.InternalHigh));
00059   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nOffsetHigh = %d"),
00060               this->overlapped_.OffsetHigh));
00061   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nhEvent = %d"),
00062               this->overlapped_.hEvent));
00063 #   else
00064   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nl_whence = %d"),
00065               this->lock_.l_whence));
00066   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nl_start = %d"), this->lock_.l_start));
00067   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nl_len = %d"), this->lock_.l_len));
00068   ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\nl_type = %d"), this->lock_.l_type));
00069 #   endif /* ACE_WIN32 */
00070   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00071 # endif /* 0 */
00072 #endif /* ACE_HAS_DUMP */
00073 }


Member Data Documentation

ACE_HANDLE ACE_OS::ace_flock_t::handle_

Handle to the underlying file.

Definition at line 177 of file OS_NS_stdio.h.

Referenced by ACE_OS::flock_destroy(), ACE_OS::flock_init(), ACE_OS::flock_rdlock(), ACE_OS::flock_tryrdlock(), ACE_OS::flock_trywrlock(), ACE_OS::flock_unlock(), ACE_OS::flock_wrlock(), ACE_File_Lock::get_handle(), and ACE_File_Lock::set_handle().

struct flock ACE_OS::ace_flock_t::lock_

Definition at line 170 of file OS_NS_stdio.h.

Referenced by ACE_OS::flock_rdlock(), ACE_OS::flock_tryrdlock(), ACE_OS::flock_trywrlock(), ACE_OS::flock_unlock(), and ACE_OS::flock_wrlock().

const ACE_TCHAR* ACE_OS::ace_flock_t::lockname_

Name of this filelock.

Definition at line 174 of file OS_NS_stdio.h.

Referenced by ACE_OS::flock_init().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:36:07 2010 for ACE by  doxygen 1.4.7