KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
kthread_tls_kv_t Struct Reference

Thread-local storage key-value pair. More...

#include <tls.h>

Public Member Functions

 LIST_ENTRY (kthread_tls_kv) kv_list
 List handle – NOT a function.
 

Data Fields

kthread_key_t key
 The key associated with this data.
 
void * data
 The value of the data.
 
void(* destructor )(void *)
 Optional destructor for the value (set per key).
 

Detailed Description

Thread-local storage key-value pair.

This is the structure that is actually used to store the specific value for a thread for a single TLS key.

You will not end up using these directly at all in programs, as they are only used internally.

Member Function Documentation

◆ LIST_ENTRY()

kthread_tls_kv_t::LIST_ENTRY ( kthread_tls_kv )

List handle – NOT a function.

Field Documentation

◆ data

void* kthread_tls_kv_t::data

The value of the data.

◆ destructor

void(* kthread_tls_kv_t::destructor) (void *)

Optional destructor for the value (set per key).

◆ key

kthread_key_t kthread_tls_kv_t::key

The key associated with this data.


The documentation for this struct was generated from the following file: