cortex 0.0.1
Loading...
Searching...
No Matches
cortex Namespace Reference

Namespaces

namespace  detail
 
namespace  tiny_fiber
 Cooperative multitasking primitives built on cortex::Coroutine.
 

Classes

class  BaseCoroutine
 An abstract base class for creating object-oriented coroutines. More...
 
class  Coroutine
 A stackful coroutine that provides a mechanism for cooperative multitasking. More...
 
class  CoroutineSuspendContext
 Provides a mechanism for a coroutine to suspend itself. More...
 
class  Generator
 A stackful generator that yields values of type T. More...
 
class  MemoryResource
 
struct  ResumeOnDoneCoroutineError
 Exception thrown when calling Resume() on a coroutine that has finished execution. More...
 

Typedefs

using CoroutineBody = fu2::unique_function< void(CoroutineSuspendContext &)>
 The signature for a coroutine's entry point.
 
using MemoryResourceSharedPtr = std::shared_ptr< MemoryResource >
 

Functions

MemoryResourceSharedPtr GetDefaultMemoryResource ()
 

Typedef Documentation

◆ CoroutineBody

The signature for a coroutine's entry point.

A coroutine body is a callable that receives a CoroutineSuspendContext reference, which it can use to suspend its execution.

◆ MemoryResourceSharedPtr

using cortex::MemoryResourceSharedPtr = typedef std::shared_ptr<MemoryResource>

Function Documentation

◆ GetDefaultMemoryResource()

MemoryResourceSharedPtr cortex::GetDefaultMemoryResource ( )