A one-word parker: a thread sleeps on it until another thread changes it. More...
Classes | |
| struct | donner::tasks::PlatformParkerHooks< WordT > |
The platform policy of a Parker over WordT: std::atomic::wait and std::atomic::notify_one, and a hook at each step of Parker::parkUntil that compiles to nothing. More... | |
| class | donner::tasks::Parker< Hooks > |
| A parker: one atomic word holding a waiting bit and an epoch, that one thread, its sleeper, waits on and any thread changes to wake it. More... | |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
Typedefs | |
| using | donner::tasks::NativeParkerWord = std::int32_t |
| The parker word's type: exactly the type the standard library's std::atomic::wait waits on natively, so a parker never goes through the library's shared contention table, whose buckets unrelated addresses share. | |
| using | donner::tasks::NoParkerHooks = PlatformParkerHooks<NativeParkerWord> |
| The production policy: the platform wait on NativeParkerWord. | |
A one-word parker: a thread sleeps on it until another thread changes it.
| using donner::tasks::NativeParkerWord = std::int32_t |
The parker word's type: exactly the type the standard library's std::atomic::wait waits on natively, so a parker never goes through the library's shared contention table, whose buckets unrelated addresses share.
It is the one place the word type is chosen.