RetroArch
Classes | Macros | Functions | Variables
scefiber.c File Reference
#include <libco.h>
#include <stdlib.h>
#include <psp2/sysmodule.h>
Include dependency graph for scefiber.c:

Classes

struct  SceFiber
 

Macros

#define LIBCO_C
 

Functions

struct SceFiber __attribute__ ((aligned(8)))
 
int32_t _sceFiberInitializeImpl (SceFiber *fiber, char *name, void *entry, uint32_t argOnInitialize, void *addrContext, int32_t sizeContext, void *params)
 
int32_t sceFiberFinalize (SceFiber *fiber)
 
int32_t sceFiberRun (SceFiber *fiber, uint32_t argOnRunTo, uint32_t *argOnRun)
 
int32_t sceFiberSwitch (SceFiber *fiber, uint32_t argOnRunTo, uint32_t *argOnRun)
 
int32_t sceFiberReturnToThread (uint32_t argOnReturn, uint32_t *argOnRun)
 
static void co_thunk (uint32_t argOnInitialize, uint32_t argOnRun)
 
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
 
char reserved [128]
 

Macro Definition Documentation

◆ LIBCO_C

#define LIBCO_C

Function Documentation

◆ __attribute__()

struct SceFiber __attribute__ ( (aligned(8))  )

◆ _sceFiberInitializeImpl()

int32_t _sceFiberInitializeImpl ( SceFiber fiber,
char *  name,
void entry,
uint32_t  argOnInitialize,
void addrContext,
int32_t  sizeContext,
void params 
)
Here is the caller graph for this function:

◆ 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:

◆ co_switch()

void co_switch ( cothread_t  cothread)

co_switch: : cothread object to switch to

Do a context switch to .

Here is the call graph for this function:

◆ co_thunk()

static void co_thunk ( uint32_t  argOnInitialize,
uint32_t  argOnRun 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sceFiberFinalize()

int32_t sceFiberFinalize ( SceFiber fiber)
Here is the caller graph for this function:

◆ sceFiberReturnToThread()

int32_t sceFiberReturnToThread ( uint32_t  argOnReturn,
uint32_t argOnRun 
)
Here is the caller graph for this function:

◆ sceFiberRun()

int32_t sceFiberRun ( SceFiber fiber,
uint32_t  argOnRunTo,
uint32_t argOnRun 
)
Here is the caller graph for this function:

◆ sceFiberSwitch()

int32_t sceFiberSwitch ( SceFiber fiber,
uint32_t  argOnRunTo,
uint32_t argOnRun 
)
Here is the caller graph for this function:

Variable Documentation

◆ co_active_

thread_local cothread_t co_active_ = 0
static

◆ reserved

char reserved[128]