Home | History | Annotate | Download | only in decpp

Lines Matching defs:Mutex

35  * Mutex class provides standard mutual exclusion lock functionality.
37 class Mutex
40 Mutex (deUint32 flags = 0);
41 ~Mutex (void);
48 Mutex (const Mutex& other); // Not allowed!
49 Mutex& operator= (const Mutex& other); // Not allowed!
55 * \brief Scoped mutex lock.
57 * ScopedLock provides helper for maintaining Mutex lock for the duration
64 ScopedLock (Mutex& mutex);
71 Mutex& m_mutex;
74 // Mutex inline implementations.
77 * \brief Acquire mutex lock.
82 * If mutex is currently locked the function will block until current
85 * In recursive mode further calls from the thread owning the mutex will
88 inline void Mutex::lock (void) throw()
94 * \brief Release mutex lock.
99 * In recursive mode the mutex will be released once the lock count reaches
102 inline void Mutex::unlock (void) throw()
111 * This function will never block, i.e. it will return false if mutex
114 inline bool Mutex::tryLock (void) throw()
122 * \brief Acquire scoped lock to mutex.
123 * \param mutex Mutex to be locked.
125 inline ScopedLock::ScopedLock (Mutex& mutex)
126 : m_mutex(mutex)