Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / LOCK_SOCK_Acceptor.cpp
blob400517cf40b8bc6403e7c1562a974c65b42bb486
1 #ifndef ACE_LOCK_SOCK_ACCEPTOR_CPP
2 #define ACE_LOCK_SOCK_ACCEPTOR_CPP
4 #include "ace/Guard_T.h"
5 #include "ace/LOCK_SOCK_Acceptor.h"
7 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
9 template <class ACE_LOCK> int
10 ACE_LOCK_SOCK_Acceptor<ACE_LOCK>::accept (ACE_SOCK_Stream &stream,
11 ACE_Addr *remote_address,
12 ACE_Time_Value *timeout,
13 bool restart,
14 bool reset_new_handle) const
16 ACE_GUARD_RETURN (ACE_LOCK, ace_mon, (ACE_LOCK &) this->lock_, -1);
18 return ACE_SOCK_Acceptor::accept (stream,
19 remote_address,
20 timeout,
21 restart,
22 reset_new_handle);
25 template <class ACE_LOCK> ACE_LOCK &
26 ACE_LOCK_SOCK_Acceptor<ACE_LOCK>::lock ()
28 return this->lock_;
31 ACE_END_VERSIONED_NAMESPACE_DECL
33 #endif /* ACE_LOCK_SOCK_ACCEPTOR_CPP */