Initial Patch of Auction House bot rev. 135
[auctionmangos.git] / dep / ACE_wrappers / ace / LOCK_SOCK_Acceptor.cpp
blobbea8c9015f3abf817c78b5a484c0f474d640a3f1
1 // $Id: LOCK_SOCK_Acceptor.cpp 80826 2008-03-04 14:51:23Z wotte $
3 #ifndef ACE_LOCK_SOCK_ACCEPTOR_CPP
4 #define ACE_LOCK_SOCK_ACCEPTOR_CPP
6 #include "ace/Guard_T.h"
7 #include "ace/LOCK_SOCK_Acceptor.h"
9 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
11 template <class ACE_LOCK> int
12 ACE_LOCK_SOCK_Acceptor<ACE_LOCK>::accept (ACE_SOCK_Stream &stream,
13 ACE_Addr *remote_address,
14 ACE_Time_Value *timeout,
15 int restart,
16 int reset_new_handle) const
18 ACE_GUARD_RETURN (ACE_LOCK, ace_mon, (ACE_LOCK &) this->lock_, -1);
20 return ACE_SOCK_Acceptor::accept (stream,
21 remote_address,
22 timeout,
23 restart,
24 reset_new_handle);
27 template <class ACE_LOCK> ACE_LOCK &
28 ACE_LOCK_SOCK_Acceptor<ACE_LOCK>::lock (void)
30 return this->lock_;
33 ACE_END_VERSIONED_NAMESPACE_DECL
35 #endif /* ACE_LOCK_SOCK_ACCEPTOR_CPP */