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
,
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
,
27 template <class ACE_LOCK
> ACE_LOCK
&
28 ACE_LOCK_SOCK_Acceptor
<ACE_LOCK
>::lock (void)
33 ACE_END_VERSIONED_NAMESPACE_DECL
35 #endif /* ACE_LOCK_SOCK_ACCEPTOR_CPP */