Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::FiberJobPool Struct Reference

Fixed-capacity owner of reusable FiberJob records with explicit completed-result release. More...

#include <Fibers.h>

Public Member Functions

 FiberJobPool (const FiberJobPool &)=delete
 
FiberJobPooloperator= (const FiberJobPool &)=delete
 
Result create (Span< FiberJob > jobStorage)
 
Result create (FiberJobClass &jobClass)
 
Result close ()
 
Result spawn (FiberJobScheduler &scheduler, FiberJob::Procedure procedure, FiberJob *&outJob)
 
Result spawn (FiberJobScheduler &scheduler, FiberJob::Procedure procedure, FiberCancellationToken token, FiberJob *&outJob)
 
Result release (FiberJob &job)
 
bool isOpen () const
 
bool owns (const FiberJob &job) const
 
size_t capacity () const
 
size_t retainedCount () const
 
size_t availableCount () const
 
void diagnostics (FiberJobPoolDiagnostics &outDiagnostics) const
 

Detailed Description

Fixed-capacity owner of reusable FiberJob records with explicit completed-result release.


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