/usr/include/ace/Process_Semaphore.inl is in libace-dev 6.0.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | // -*- C++ -*-
//
// $Id: Process_Semaphore.inl 80826 2008-03-04 14:51:23Z wotte $
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
#if defined (ACE_WIN32) || defined (ACE_HAS_POSIX_SEM)
ACE_INLINE const ACE_sema_t &
ACE_Process_Semaphore::lock (void) const
{
// ACE_TRACE ("ACE_Process_Semaphore::lock");
return this->lock_.lock ();
}
#endif /* ACE_WIN32 || ACE_HAS_POSIX_SEM */
// Acquire semaphore ownership. This calls <acquire> and is only here
// to make the ACE_Process_Semaphore interface consistent with the
// other synchronization APIs.
ACE_INLINE int
ACE_Process_Semaphore::acquire_read (void)
{
return this->acquire ();
}
// Acquire semaphore ownership. This calls <acquire> and is only here
// to make the ACE_Process_Semaphore interface consistent with the
// other synchronization APIs.
ACE_INLINE int
ACE_Process_Semaphore::acquire_write (void)
{
return this->acquire ();
}
// Conditionally acquire semaphore (i.e., won't block). This calls
// <tryacquire> and is only here to make the ACE_Process_Semaphore
// interface consistent with the other synchronization APIs.
ACE_INLINE int
ACE_Process_Semaphore::tryacquire_read (void)
{
return this->tryacquire ();
}
// Conditionally acquire semaphore (i.e., won't block). This calls
// <tryacquire> and is only here to make the ACE_Process_Semaphore
// interface consistent with the other synchronization APIs.
ACE_INLINE int
ACE_Process_Semaphore::tryacquire_write (void)
{
return this->tryacquire ();
}
// This is only here to make the ACE_Process_Semaphore
// interface consistent with the other synchronization APIs.
// Assumes the caller has already acquired the semaphore using one of
// the above calls, and returns 0 (success) always.
ACE_INLINE int
ACE_Process_Semaphore::tryacquire_write_upgrade (void)
{
return 0;
}
ACE_END_VERSIONED_NAMESPACE_DECL
|