Skip to main content
Pigweed's logo Pigweed
  1. Home
  2. Reference
  3. C/C++
  4. pw_sync
  5. pw::sync::NoLock Class Reference
Loading...
Searching...
No Matches
pw::sync::NoLock Class Reference

Overview

NoLock is a no-op lock that satisfies the C++ named requirements for BasicLockable but performs no synchronization. This can be used for code that is conditionally thread-safe.

Public Member Functions

constexpr void lock ()
 
constexpr void unlock ()
 
bool try_lock ()
 

The documentation for this class was generated from the following file: