KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
rlock_test.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <kos/thread.h>
#include <kos/mutex.h>
#include <dc/maple.h>
#include <dc/maple/controller.h>

Macros

#define UNUSED   __attribute__((unused))
 

Functions

void * thd0 (void *param UNUSED)
 
void * thd1 (void *param UNUSED)
 
void * thd2 (void *param UNUSED)
 
int main (int argc, char *argv[])
 

Variables

mutex_t l = RECURSIVE_MUTEX_INITIALIZER
 

Macro Definition Documentation

◆ UNUSED

#define UNUSED   __attribute__((unused))

Function Documentation

◆ main()

◆ thd0()

void * thd0 ( void *param UNUSED)

References mutex_t::count, l, mutex_lock(), mutex_unlock(), NULL, printf, and thd_sleep().

Referenced by main().

◆ thd1()

void * thd1 ( void *param UNUSED)

References l, mutex_lock(), mutex_unlock(), NULL, printf, and thd_pass().

Referenced by main().

◆ thd2()

void * thd2 ( void *param UNUSED)

References l, mutex_lock(), mutex_unlock(), NULL, and printf.

Referenced by main().

Variable Documentation

◆ l