|
ScL Feature 0.0.1
C++20 composable proxy wrapper with pluggable executor strategy
|
RAII guards and lazy locks for wrapper and plain value types. More...
Classes | |
| class | scl::value_lock< Refer > |
| Recursive lazy RAII lock through a wrapper chain. More... | |
| class | scl::wrapper_guard< Refer > |
| RAII guard providing access to the value held by a wrapper or a plain reference. More... | |
| class | scl::wrapper_lock< Refer > |
| Lazy RAII lock for a single wrapper layer. More... | |
RAII guards and lazy locks for wrapper and plain value types.
Three complementary primitives cover the full range of locking needs for scl::wrapper chains:
| Type | Acquisition | Depth |
|---|---|---|
scl::wrapper_guard | eager (constructor) | single layer |
scl::wrapper_lock | lazy (lock()) | single layer |
scl::value_lock | lazy (lock_for()) | entire chain |
All three are transparent for non-wrapper types: construction, locking, and value access become no-ops or direct reference passes respectively.