Lines Matching full:mutex
1 //===-- mutex.h -------------------------------------------------*- C++ -*-===//
16 class Mutex final : PlatformMutex {
18 constexpr Mutex() = default;
19 ~Mutex() = default;
20 Mutex(const Mutex &) = delete;
21 Mutex &operator=(const Mutex &) = delete;
22 // Lock the mutex.
24 // Nonblocking trylock of the mutex. Returns true if the lock was acquired.
26 // Unlock the mutex.
32 explicit ScopedLock(Mutex &Mx) : Mu(Mx) { Mu.lock(); } in ScopedLock()
38 Mutex Μ