libcommunism
Userspace cooperative threading library
|
Main namespace for the libcommunism library. More...
Namespaces | |
internal | |
Implementation details (including architecture/platform specific code) for the library. | |
Classes | |
struct | CothreadImpl |
Abstract interface for a platform implementation of cothreads. More... | |
class | Cothread |
Instance of a single cooperative thread. More... | |
Functions | |
CothreadImpl * | AllocKernelThreadWrapper () |
Main namespace for the libcommunism library.
CothreadImpl * libcommunism::AllocKernelThreadWrapper | ( | ) |
Allocate the cothread implementation for the currently executing kernel thread.
This is invoked when no cothread is running on the kernel thread, and is only used to hold the state of the kernel thread on entry to the first cothread, so it can "resume" the kernel thread.
Allocates the current physical (kernel) thread's Cothread object.
Definition at line 134 of file Common.cpp.