Pigweed
C/C++ API Reference
|
Public Member Functions | |
void | lock () |
void | unlock () |
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.