[6916] Fixed typos in spell checking code.
[getmangos.git] / dep / ACE_wrappers / ace / RW_Process_Mutex.inl
blob42e92270a87fdbd7ec7e4f7229eb8b53861d0cd7
1 // -*- C++ -*-
2 //
3 // $Id: RW_Process_Mutex.inl 80826 2008-03-04 14:51:23Z wotte $
5 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
7 // Explicitly destroy the mutex.
8 ACE_INLINE int
9 ACE_RW_Process_Mutex::remove (void)
11   return this->lock_.remove ();
14 // Acquire lock ownership (wait on priority queue if necessary).
15 ACE_INLINE int
16 ACE_RW_Process_Mutex::acquire (void)
18   return this->lock_.acquire ();
21 // Conditionally acquire lock (i.e., don't wait on queue).
22 ACE_INLINE int
23 ACE_RW_Process_Mutex::tryacquire (void)
25   return this->lock_.tryacquire ();
28 // Release lock and unblock a thread at head of priority queue.
29 ACE_INLINE int
30 ACE_RW_Process_Mutex::release (void)
32   return this->lock_.release ();
35 // Acquire lock ownership (wait on priority queue if necessary).
36 ACE_INLINE int
37 ACE_RW_Process_Mutex::acquire_read (void)
39   return this->lock_.acquire_read ();
42 // Acquire lock ownership (wait on priority queue if necessary).
43 ACE_INLINE int
44 ACE_RW_Process_Mutex::acquire_write (void)
46   return this->lock_.acquire_write ();
49 // Conditionally acquire a lock (i.e., won't block).
50 ACE_INLINE int
51 ACE_RW_Process_Mutex::tryacquire_read (void)
53   return this->lock_.tryacquire_read ();
56 // Conditionally acquire a lock (i.e., won't block).
57 ACE_INLINE int
58 ACE_RW_Process_Mutex::tryacquire_write (void)
60   return this->lock_.tryacquire_write ();
63 // Conditionally upgrade a lock (i.e., won't block).
64 ACE_INLINE int
65 ACE_RW_Process_Mutex::tryacquire_write_upgrade (void)
67   return this->lock_.tryacquire_write_upgrade ();
70 ACE_INLINE const ACE_File_Lock &
71 ACE_RW_Process_Mutex::lock (void) const
73 // ACE_TRACE ("ACE_RW_Process_Mutex::lock");
74   return this->lock_;
77 ACE_END_VERSIONED_NAMESPACE_DECL