RetroArch
Macros | Functions | Variables
fiber.c File Reference
#include <libco.h>
#include <windows.h>
Include dependency graph for fiber.c:

Macros

#define LIBCO_C
 
#define WINVER   0x0400
 
#define _WIN32_WINNT   0x0400
 
#define WIN32_LEAN_AND_MEAN
 

Functions

static void __stdcall co_thunk (void *coentry)
 
cothread_t co_active (void)
 
cothread_t co_create (unsigned int heapsize, void(*coentry)(void))
 
void co_delete (cothread_t cothread)
 
void co_switch (cothread_t cothread)
 

Variables

static thread_local cothread_t co_active_ = 0
 

Macro Definition Documentation

◆ _WIN32_WINNT

#define _WIN32_WINNT   0x0400

◆ LIBCO_C

#define LIBCO_C

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

◆ WINVER

#define WINVER   0x0400

Function Documentation

◆ co_active()

cothread_t co_active ( void  )

co_active:

Gets the currently active context.

Returns: active context.

◆ co_create()

cothread_t co_create ( unsigned  int,
void(*)(void  
)

co_create: : stack size : thread entry function callback

Create a co_thread.

Returns: cothread if successful, otherwise NULL.

Here is the call graph for this function:

◆ co_delete()

void co_delete ( cothread_t  cothread)

co_delete: : cothread object

Frees a co_thread.

◆ co_switch()

void co_switch ( cothread_t  cothread)

co_switch: : cothread object to switch to

Do a context switch to .

◆ co_thunk()

static void __stdcall co_thunk ( void coentry)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ co_active_

thread_local cothread_t co_active_ = 0
static