diff options
Diffstat (limited to 'ace/Process_Mutex.inl')
-rw-r--r-- | ace/Process_Mutex.inl | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/ace/Process_Mutex.inl b/ace/Process_Mutex.inl deleted file mode 100644 index 14c0af99e42..00000000000 --- a/ace/Process_Mutex.inl +++ /dev/null @@ -1,85 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -#if !defined (_ACE_USE_SV_SEM) -ACE_INLINE const ACE_mutex_t & -ACE_Process_Mutex::lock (void) const -{ -// ACE_TRACE ("ACE_Process_Mutex::lock"); - return this->lock_.lock (); -} -#endif /* !_ACE_USE_SV_SEM */ - -// Explicitly destroy the mutex. -ACE_INLINE int -ACE_Process_Mutex::remove (void) -{ - return this->lock_.remove (); -} - -// Acquire lock ownership (wait on priority queue if necessary). -ACE_INLINE int -ACE_Process_Mutex::acquire (void) -{ - return this->lock_.acquire (); -} - -// Acquire lock ownership (wait on priority queue if necessary). -ACE_INLINE int -ACE_Process_Mutex::acquire (ACE_Time_Value &tv) -{ -#if !defined (_ACE_USE_SV_SEM) - return this->lock_.acquire (tv); -#else - ACE_UNUSED_ARG (tv); - ACE_NOTSUP_RETURN (-1); -#endif /* !_ACE_USE_SV_SEM */ -} - -// Conditionally acquire lock (i.e., don't wait on queue). -ACE_INLINE int -ACE_Process_Mutex::tryacquire (void) -{ - return this->lock_.tryacquire (); -} - -// Release lock and unblock a thread at head of priority queue. -ACE_INLINE int -ACE_Process_Mutex::release (void) -{ - return this->lock_.release (); -} - -// Acquire lock ownership (wait on priority queue if necessary). -ACE_INLINE int -ACE_Process_Mutex::acquire_read (void) -{ - return this->lock_.acquire_read (); -} - -// Acquire lock ownership (wait on priority queue if necessary). -ACE_INLINE int -ACE_Process_Mutex::acquire_write (void) -{ - return this->lock_.acquire_write (); -} - -// Conditionally acquire a lock (i.e., won't block). -ACE_INLINE int -ACE_Process_Mutex::tryacquire_read (void) -{ - return this->lock_.tryacquire_read (); -} - -// Conditionally acquire a lock (i.e., won't block). -ACE_INLINE int -ACE_Process_Mutex::tryacquire_write (void) -{ - return this->lock_.tryacquire_write (); -} - -ACE_INLINE int -ACE_Process_Mutex::tryacquire_write_upgrade (void) -{ - return 0; -} |