Pigweed
C/C++ API Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
Public Member Functions | List of all members
pw::LazyInitThreadChecker Class Reference

Public Member Functions

void lock ()
 
void unlock ()
 

Detailed Description

A BaseLockable class that works like ThreadChecker but only initializes its thread id when first locked instead of construction time.

This is useful for cases where you may not have access to right thread id at construction time, but still want to assert fields are always accessed on the same thread.


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