summaryrefslogtreecommitdiff
path: root/ace/LOCK_SOCK_Acceptor.cpp
blob: de63cc7b33f62e37ec060d8a20c1662df44bdf8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// $Id$

#if !defined (LOCK_SOCK_ACCEPTOR_CPP)
#define LOCK_SOCK_ACCEPTOR_CPP

template <class ACE_LOCK> int
ACE_LOCK_SOCK_Acceptor<ACE_LOCK>::accept (ACE_SOCK_Stream &stream,
                                          ACE_Addr *remote_address,
                                          ACE_Time_Value *timeout,
                                          int restart,
                                          int reset_new_handle) const
{
  ACE_GUARD_RETURN (ACE_LOCK, ace_mon, (ACE_LOCK &) this->lock_, -1);
  
  return SUPER::accept (stream, 
                        remote_address, 
                        timeout, 
                        restart, 
                        reset_new_handle);
}

template <class ACE_LOCK> ACE_LOCK &
ACE_LOCK_SOCK_Acceptor<ACE_LOCK>::lock (void)
{
  return this->lock_;
}

#endif /* LOCK_SOCK_ACCEPTOR_CPP */