FreeBASIC  0.91.0
thread_ctx.c File Reference
#include "fb.h"
#include "fb_private_thread.h"
Include dependency graph for thread_ctx.c:

Go to the source code of this file.

Macros

#define FB_TLSENTRY   uintptr_t
 
#define FB_TLSALLOC(key)   key = NULL
 
#define FB_TLSFREE(key)   key = NULL
 
#define FB_TLSSET(key, value)   key = (FB_TLSENTRY)value
 
#define FB_TLSGET(key)   key
 

Functions

FBCALL void * fb_TlsGetCtx (int index, size_t len)
 
FBCALL void fb_TlsDelCtx (int index)
 
FBCALL void fb_TlsFreeCtxTb (void)
 

Variables

static FB_TLSENTRY __fb_tls_ctxtb [FB_TLSKEYS]
 

Macro Definition Documentation

#define FB_TLSALLOC (   key)    key = NULL

Definition at line 20 of file thread_ctx.c.

#define FB_TLSENTRY   uintptr_t

Definition at line 19 of file thread_ctx.c.

#define FB_TLSFREE (   key)    key = NULL

Definition at line 21 of file thread_ctx.c.

#define FB_TLSGET (   key)    key

Definition at line 23 of file thread_ctx.c.

#define FB_TLSSET (   key,
  value 
)    key = (FB_TLSENTRY)value

Definition at line 22 of file thread_ctx.c.

Function Documentation

FBCALL void fb_TlsDelCtx ( int  index)

Definition at line 40 of file thread_ctx.c.

Here is the caller graph for this function:

FBCALL void fb_TlsFreeCtxTb ( void  )

Definition at line 51 of file thread_ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

FBCALL void* fb_TlsGetCtx ( int  index,
size_t  len 
)

Definition at line 28 of file thread_ctx.c.

Here is the caller graph for this function:

Variable Documentation

FB_TLSENTRY __fb_tls_ctxtb[FB_TLSKEYS]
static

Definition at line 26 of file thread_ctx.c.