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

Macros

#define thread_local   __thread
 

Functions

static thread_local volatile _Alignas (4)
 
static thread_local volatile _Alignas (16)
 
static thread_local volatile _Alignas (32)
 
void * thd (void *v)
 
int main (int argc, char **argv)
 

Variables

static thread_local volatile uint16_t tls_uint16 [256] = { 0 }
 
static thread_local volatile uint32_t tdata_test = 0x5A
 

Macro Definition Documentation

◆ thread_local

#define thread_local   __thread

Function Documentation

◆ _Alignas() [1/3]

static thread_local volatile _Alignas ( 16 )
static

◆ _Alignas() [2/3]

static thread_local volatile _Alignas ( 32 )
static

◆ _Alignas() [3/3]

static thread_local volatile _Alignas ( 4 )
static

◆ main()

int main ( int argc,
char ** argv )

◆ thd()

void * thd ( void * v)

References fprintf, printf, tdata_test, thd_sleep(), and tls_uint16.

Referenced by main(), and TAILQ_HEAD().

Variable Documentation

◆ tdata_test

thread_local volatile uint32_t tdata_test = 0x5A
static

Referenced by thd().

◆ tls_uint16

thread_local volatile uint16_t tls_uint16[256] = { 0 }
static

Referenced by thd().