Pigweed
Loading...
Searching...
No Matches
pw::sync::NoOpLock Class Referencefinal

#include <virtual_basic_lockable.h>

Public Member Functions

 NoOpLock (const NoOpLock &)=delete
 
 NoOpLock (NoOpLock &&)=delete
 
NoOpLockoperator= (const NoOpLock &)=delete
 
NoOpLockoperator= (NoOpLock &&)=delete
 
- Public Member Functions inherited from pw::sync::VirtualBasicLockable
void lock ()
 
void unlock ()
 

Static Public Member Functions

static NoOpLockInstance ()
 

Additional Inherited Members

- Protected Types inherited from pw::sync::VirtualBasicLockable
enum class  Operation { kLock , kUnlock }
 

Detailed Description

The NoOpLock is a type of VirtualBasicLockable that does nothing, i.e. lock operations are no-ops.

Member Function Documentation

◆ Instance()

static NoOpLock & pw::sync::NoOpLock::Instance ( )
inlinestatic

Gives access to a global NoOpLock instance. It is not necessary to have multiple NoOpLock instances since they have no state and do nothing.


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