|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#include <kos.h>#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <stdarg.h>#include <stdatomic.h>#include <stdnoreturn.h>Macros | |
| #define | THREAD_COUNT (DBL_MEM? 600 : 300) |
| #define | THREAD_PASS_CHANCE 75 |
Functions | |
| static void | reentrant_mutex_init (reentrant_mutex_t *rmutex) |
| static void | reentrant_mutex_uninit (reentrant_mutex_t *rmutex) |
| static noreturn void | failure (const char *fmt,...) |
| static void | reentrant_mutex_lock (reentrant_mutex_t *rmutex) |
| static void | reentrant_mutex_unlock (reentrant_mutex_t *rmutex) |
| static void | maybe_pass (void) |
| static void * | thread_func (void *arg) |
| int | main (int argc, const char *argv[]) |
Variables | |
| static reentrant_mutex_t | rmutex |
| static int | shared_variable = 0 |
| #define THREAD_PASS_CHANCE 75 |
Referenced by maybe_pass().
|
static |
References buffer, fprintf, and thd_get_label().
Referenced by main(), main(), reentrant_mutex_lock(), and reentrant_mutex_unlock().
| int main | ( | int | argc, |
| const char * | argv[] ) |
|
static |
References thd_pass(), and THREAD_PASS_CHANCE.
Referenced by main(), and thread_func().
|
static |
References mutex_init(), MUTEX_TYPE_NORMAL, NULL, and rmutex.
Referenced by main().
|
static |
References _Atomic(), failure(), mutex_is_locked(), mutex_lock(), NULL, and rmutex.
Referenced by thread_func().
|
static |
References mutex_destroy(), and rmutex.
Referenced by main().
|
static |
References _Atomic(), failure(), fprintf, mutex_unlock(), NULL, and rmutex.
Referenced by thread_func().
|
static |
References maybe_pass(), NULL, printf, reentrant_mutex_lock(), reentrant_mutex_unlock(), rmutex, shared_variable, and thd_get_label().
Referenced by main().
|
static |
Referenced by main(), reentrant_mutex_init(), reentrant_mutex_lock(), reentrant_mutex_uninit(), reentrant_mutex_unlock(), and thread_func().
|
static |
Referenced by main(), and thread_func().