Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
ParkerPool.h File Reference

Parkers for threads that are not workers, owned by a pool that outlives every thread holding one of its slots. More...

#include <atomic>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <mutex>
#include <vector>
#include "donner/base/tasks/FalseSharing.h"
#include "donner/base/tasks/Parker.h"
Include dependency graph for ParkerPool.h:
This graph shows which files directly or indirectly include this file:

Classes

class  donner::tasks::ParkerPool
 The parkers of one scheduler's non-worker scope creators: slots at stable addresses, allocated in fixed blocks, and a free list under a mutex. More...
struct  donner::tasks::ParkerPool::Slot
 A slot handed out by acquire. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Detailed Description

Parkers for threads that are not workers, owned by a pool that outlives every thread holding one of its slots.


Class Documentation

◆ donner::tasks::ParkerPool::Slot

struct donner::tasks::ParkerPool::Slot

A slot handed out by acquire.

Class Members
size_t index The slot's index, to pass back to Release.
Parker * parker The slot's parker, at a stable address while the pool lives.