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 |
A thread-affine claim on one scheduler slot. Destroy it after its synchronous scopes.