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

Macros

#define print(...)
 

Functions

static int fib (int n)
 
void * thd (void *v)
 
int main (int argc, char **argv)
 

Variables

static uint32_t lock_counter = 0
 
static spinlock_t lock = SPINLOCK_INITIALIZER
 

Macro Definition Documentation

◆ print

#define print ( ...)
Value:
do { \
printf(__VA_ARGS__); \
fflush(stdout); \
} while(0)

Referenced by main(), test_stop_source(), and thd().

Function Documentation

◆ fib()

static int fib ( int n)
static

References fib().

Referenced by fib(), and thd().

◆ main()

int main ( int argc,
char ** argv )

◆ thd()

void * thd ( void * v)

Variable Documentation

◆ lock

Referenced by thd().

◆ lock_counter

uint32_t lock_counter = 0
static

Referenced by main(), and thd().