Files
TCPlayerbotCore/dep/ACE_wrappers/ace/DEV.cpp
T

45 lines
779 B
C++
Raw Normal View History

// $Id: DEV.cpp 80826 2008-03-04 14:51:23Z wotte $
2009-10-17 15:51:44 -07:00
#include "ace/DEV.h"
2009-10-17 15:51:44 -07:00
#include "ace/OS_NS_unistd.h"
2009-10-17 15:51:44 -07:00
#if !defined (__ACE_INLINE__)
#include "ace/DEV.inl"
#endif /* __ACE_INLINE__ */
2009-10-17 15:51:44 -07:00
ACE_RCSID(ace, DEV, "$Id: DEV.cpp 80826 2008-03-04 14:51:23Z wotte $")
2009-10-17 15:51:44 -07:00
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
2009-10-17 15:51:44 -07:00
ACE_ALLOC_HOOK_DEFINE(ACE_DEV)
2009-10-17 15:51:44 -07:00
void
ACE_DEV::dump (void) const
{
#if defined (ACE_HAS_DUMP)
ACE_TRACE ("ACE_DEV::dump");
#endif /* ACE_HAS_DUMP */
}
2009-10-17 15:51:44 -07:00
// This is the do-nothing constructor.
2009-10-17 15:51:44 -07:00
ACE_DEV::ACE_DEV (void)
{
ACE_TRACE ("ACE_DEV::ACE_DEV");
}
2009-10-17 15:51:44 -07:00
// Close the device
2009-10-17 15:51:44 -07:00
int
ACE_DEV::close (void)
{
ACE_TRACE ("ACE_DEV::close");
int result = ACE_OS::close (this->get_handle ());
this->set_handle (ACE_INVALID_HANDLE);
return result;
}
2009-10-17 15:51:44 -07:00
ACE_END_VERSIONED_NAMESPACE_DECL
2009-02-17 20:07:49 -06:00