Lines Matching refs:Mutex
47 class Mutex {
54 Mutex();
55 Mutex(const char* name);
56 Mutex(int type, const char* name = NULL);
57 ~Mutex();
80 inline Autolock(Mutex& mutex) : mLock(mutex) { mLock.lock(); } in Autolock()
81 inline Autolock(Mutex* mutex) : mLock(*mutex) { mLock.lock(); } in Autolock()
84 Mutex& mLock;
91 Mutex(const Mutex&);
92 Mutex& operator = (const Mutex&);
106 inline Mutex::Mutex() { in Mutex() function
109 inline Mutex::Mutex(__attribute__((unused)) const char* name) { in Mutex() function
112 inline Mutex::Mutex(int type, __attribute__((unused)) const char* name) { in Mutex() function
123 inline Mutex::~Mutex() { in ~Mutex()
126 inline status_t Mutex::lock() { in lock()
129 inline void Mutex::unlock() { in unlock()
132 inline status_t Mutex::tryLock() { in tryLock()
136 inline status_t Mutex::timedLock(nsecs_t timeoutNs) { in timedLock()
155 typedef Mutex::Autolock AutoMutex;