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.
Note, this class shouldn't be locked outside of a normal thread context. It's not valid to use it interrupt context or before the scheduler is started.
Public Member Functions | |
| void | lock () |
| void | unlock () |