libcommunism
Userspace cooperative threading library
Classes | Variables
libcommunism::internal Namespace Reference

Implementation details (including architecture/platform specific code) for the library. More...

Classes

class  Aarch64
 Architecture specific methods for working with cothreads on 64 bit ARM machines. More...
 
class  Amd64
 Architecture specific methods for working with cothreads on amd64 based systems. More...
 
class  SetJmp
 Context switching utilizing the C library setjmp() and longjmp() methods. More...
 
class  UContext
 Implementation of context switching that uses the C library's setcontext() methods. More...
 
class  x86
 Architecture specific methods for working with cothreads on x86 systems. More...
 

Variables

std::function< void(libcommunism::Cothread *)> gReturnHandler {DefaultCothreadReturnedHandler}
 

Detailed Description

Implementation details (including architecture/platform specific code) for the library.

Variable Documentation

◆ gReturnHandler

std::function< void(Cothread *)> libcommunism::internal::gReturnHandler {DefaultCothreadReturnedHandler}
extern

Holds a reference to the cothread termination handler. By default, this prints the thread id of the offending cothread and then kills the process.

Definition at line 72 of file Cothread.cpp.