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

A task scope joined once by its creating coroutine. More...

#include <atomic>
#include <coroutine>
#include <cstdint>
#include <utility>
#include "donner/base/Utils.h"
#include "donner/base/tasks/TaskScheduler.h"
Include dependency graph for AsyncTaskScope.h:

Classes

class  donner::tasks::AsyncTaskScope
 A scope created, joined once, and destroyed by a coroutine. Its scheduler must outlive it. Keep the coroutine frame alive until its join resumes. On an adopted thread, a submission to an asynchronous scope older than the innermost live synchronous scope fails a release assertion. A younger asynchronous scope may submit. When the target has a slot owned by this caller, its queued work goes to the global queue while the synchronous scope is live. More...
class  donner::tasks::AsyncTaskScope::JoinAwaitable
 The waiting coroutine owns its queue entry until the scheduler resumes it. More...

Namespaces

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

Detailed Description

A task scope joined once by its creating coroutine.