Searched defs:Mutex (Results 26 - 28 of 28) sorted by relevance

12

/external/protobuf/src/google/protobuf/stubs/
H A Dcommon.h1043 // A Mutex is a non-reentrant (aka non-recursive) mutex. At most one thread T
1044 // may hold a mutex at a given time. If T attempts to Lock() the same Mutex
1046 class LIBPROTOBUF_EXPORT Mutex { class in namespace:google::protobuf::internal
1048 // Create a Mutex that is not held by anybody.
1049 Mutex();
1052 ~Mutex();
1054 // Block if necessary until this Mutex is free, then acquire it exclusively.
1057 // Release this Mutex. Caller must hold it exclusively.
1060 // Crash if this Mutex is not held exclusively by this thread.
1068 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Mutex);
[all...]
/external/clang/lib/Analysis/
H A DThreadSafety.cpp75 /// class C { Mutex Mu; void lock() EXCLUSIVE_LOCK_FUNCTION(this->Mu); };
907 void addLock(const MutexID &Mutex, const LockData &LDat);
908 void removeLock(const MutexID &Mutex, SourceLocation UnlockLoc);
980 /// \param Mutex -- the Mutex expression for the lock
982 void BuildLockset::addLock(const MutexID &Mutex, const LockData& LDat) { argument
985 if (locksetContains(Mutex))
986 Handler.handleDoubleLock(Mutex.getName(), LDat.AcquireLoc);
988 LSet = LocksetFactory.add(LSet, Mutex, LDat);
994 void BuildLockset::removeLock(const MutexID &Mutex, SourceLocatio argument
1442 const MutexID &Mutex = I.getKey(); local
[all...]
/external/clang/test/SemaCXX/
H A Dwarn-thread-safety-analysis.cpp29 class __attribute__((lockable)) Mutex { class
41 MutexLock(Mutex *mu) __attribute__((exclusive_lock_function(mu)));
47 ReaderMutexLock(Mutex *mu) __attribute__((exclusive_lock_function(mu)));
52 Mutex sls_mu;
54 Mutex sls_mu2 __attribute__((acquired_after(sls_mu)));
62 Mutex mu;
277 Mutex aa_mu;
312 Mutex wmu;
472 Mutex mu;
480 Mutex mu1
[all...]

Completed in 68 milliseconds

12