Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::tasks::AdoptedThread Class Reference

A thread-affine claim on one scheduler slot. Destroy it after its synchronous scopes. More...

#include "donner/base/tasks/TaskScheduler.h"

Public Member Functions

 AdoptedThread ()=default
 Constructs an empty guard.
 AdoptedThread (const AdoptedThread &)=delete
AdoptedThread & operator= (const AdoptedThread &)=delete
 AdoptedThread (AdoptedThread &&)=delete
AdoptedThread & operator= (AdoptedThread &&)=delete
 ~AdoptedThread ()
 Publishes any remaining asynchronous records and returns the slot to the scheduler.
 operator bool () const
 Whether the calling thread obtained a slot.

Friends

class TaskScheduler

Detailed Description

A thread-affine claim on one scheduler slot. Destroy it after its synchronous scopes.


The documentation for this class was generated from the following file: