|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#include <stdio.h>#include <stdlib.h>#include <stdbool.h>#include <stdint.h>#include <stdatomic.h>#include <errno.h>#include <string.h>#include <kos/init.h>#include <kos/thread.h>#include <kos/once.h>#include <kos/tls.h>#include <dc/maple.h>#include <dc/maple/controller.h>Macros | |
| #define | THREAD_COUNT 100 |
| #define | UNUSED __attribute__((unused)) |
Functions | |
| static void | destructor (void *data) |
| static void | once_func (void) |
| static void * | thd_func (void *param UNUSED) |
| KOS_INIT_FLAGS (INIT_DEFAULT|INIT_MALLOCSTATS) | |
| int | main (int argc, char *argv[]) |
Variables | |
| static kthread_once_t | once = KTHREAD_ONCE_INIT |
| static kthread_key_t | key1 |
| static kthread_key_t | key2 |
| static atomic_uint | dtor_counter |
| #define THREAD_COUNT 100 |
Referenced by main().
| #define UNUSED __attribute__((unused)) |
|
static |
References data, dtor_counter, and printf.
Referenced by once_func().
| KOS_INIT_FLAGS | ( | INIT_DEFAULT| | INIT_MALLOCSTATS | ) |
| int main | ( | int | argc, |
| char * | argv[] ) |
References CONT_A, CONT_B, cont_btn_callback(), CONT_START, CONT_X, CONT_Y, data, dtor_counter, fprintf, key1, key2, kthread_getspecific(), kthread_key_create(), kthread_key_delete(), kthread_setspecific(), NULL, printf, thd_create(), thd_func(), thd_join(), and THREAD_COUNT.
|
static |
References destructor(), fprintf, key2, and kthread_key_create().
Referenced by thd_func().
|
static |
References data, fprintf, key1, key2, kthread_getspecific(), kthread_once(), kthread_setspecific(), once, once_func(), printf, thd_exit(), thd_get_current(), thd_sleep(), and kthread_t::tid.
Referenced by main().
|
static |
Referenced by destructor(), and main().
|
static |
Referenced by main(), and thd_func().
|
static |
Referenced by main(), once_func(), and thd_func().
|
static |
Referenced by thd_func().