reactor-c
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
lf_platform_util.c File Reference

Functions

int map_priorities (int priority, int dest_min, int dest_max)
 Maps a priority into a destination priority range.
 
int lf_thread_id ()
 Cross-platform version of the C11 thread_local keyword.
 
void initialize_lf_thread_id ()
 Initialize the thread ID for the current thread.
 

Function Documentation

◆ initialize_lf_thread_id()

void initialize_lf_thread_id ( )

Initialize the thread ID for the current thread.

◆ lf_thread_id()

int lf_thread_id ( )

Cross-platform version of the C11 thread_local keyword.

The ID of the current thread. The only guarantee is that these IDs will be a contiguous range of numbers starting at 0.

◆ map_priorities()

int map_priorities ( int priority,
int dest_min,
int dest_max )

Maps a priority into a destination priority range.