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
,
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
,
25 template <class ACE_LOCK
> ACE_LOCK
&
26 ACE_LOCK_SOCK_Acceptor
<ACE_LOCK
>::lock ()
31 ACE_END_VERSIONED_NAMESPACE_DECL
33 #endif /* ACE_LOCK_SOCK_ACCEPTOR_CPP */