RetroArch
Classes | Macros | Functions | Variables
sjlj.c File Reference
#include <libco.h>
#include <stdlib.h>
#include <signal.h>
#include <setjmp.h>
Include dependency graph for sjlj.c:

Classes

struct  cothread_struct
 

Macros

#define LIBCO_C
 

Functions

static void springboard (int ignored)
 
cothread_t co_active (void)
 
cothread_t co_create (unsigned int size, void(*coentry)(void))
 
void co_delete (cothread_t cothread)
 
void co_switch (cothread_t cothread)
 

Variables

typedef __attribute__ = ""
 
static thread_local cothread_struct co_primary
 
static thread_local cothread_structcreating
 
static thread_local cothread_structco_running = 0
 

Macro Definition Documentation

◆ LIBCO_C

#define LIBCO_C

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ co_switch()

void co_switch ( cothread_t  cothread)

co_switch: : cothread object to switch to

Do a context switch to .

◆ springboard()

static void springboard ( int  ignored)
static
Here is the caller graph for this function:

Variable Documentation

◆ __attribute__

BOOL __attribute__ = ""

Mount the filesystem(s) needed by the application. By default, we mount the SD card to /sd.

The 'iosuhaxMount' symbol used here is public and can be referenced in overriding implementations.

Unmount filesystems. Implementing applications should be careful to clean up anything mounted in __mount_filesystems() here.

◆ co_primary

thread_local cothread_struct co_primary
static

◆ co_running

thread_local cothread_struct * co_running = 0
static

◆ creating

thread_local cothread_struct* creating
static