KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
general_threading_test.c File Reference
#include <stdlib.h>
#include <kos.h>

Functions

void * thd_0 (void *v)
 
void * thd_1 (void *v)
 
void * thd_2 (void *v)
 
void * thd_3 (void *v)
 
int main (int argc, char **argv)
 

Variables

semaphore_t sem
 
mutex_t mut = MUTEX_INITIALIZER
 
condvar_t cv = COND_INITIALIZER
 
volatile int cv_ready = 0
 
volatile int cv_cnt = 0
 
volatile int cv_quit = 0
 

Function Documentation

◆ main()

◆ thd_0()

void * thd_0 ( void * v)

References NULL, printf, thd_pslist(), vram_s, x, and y.

Referenced by main().

◆ thd_1()

void * thd_1 ( void * v)

References NULL, printf, sem, sem_signal(), thd_pslist(), and thd_sleep().

Referenced by main().

◆ thd_2()

void * thd_2 ( void * v)

References NULL, printf, sem, sem_wait(), sem_wait_timed(), thd_pslist(), and thd_sleep().

Referenced by main().

◆ thd_3()

void * thd_3 ( void * v)

Variable Documentation

◆ cv

Referenced by main(), and thd_3().

◆ cv_cnt

volatile int cv_cnt = 0

Referenced by thd_3().

◆ cv_quit

volatile int cv_quit = 0

Referenced by main(), and thd_3().

◆ cv_ready

volatile int cv_ready = 0

Referenced by main(), and thd_3().

◆ mut

Referenced by main(), and thd_3().

◆ sem

Referenced by main(), thd_1(), and thd_2().