reactor-c
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
platform.h
Go to the documentation of this file.
1
36
41int lf_thread_id();
void lf_platform_mutex_free(lf_platform_mutex_ptr_t mutex)
Free all resources associated with the provided mutex.
Definition platform.c:25
int lf_platform_mutex_unlock(lf_platform_mutex_ptr_t mutex)
Release the given mutex.
Definition platform.c:27
lf_platform_mutex_ptr_t lf_platform_mutex_new()
Create a new mutex and return (a pointer to) it.
Definition platform.c:18
int lf_thread_id()
The ID of the current thread. The only guarantee is that these IDs will be a contiguous range of numb...
Definition lf_platform_util.c:22
void * lf_platform_mutex_ptr_t
Pointer to the platform-specific implementation of a mutex.
Definition platform.h:15
int lf_platform_mutex_lock(lf_platform_mutex_ptr_t mutex)
Acquire the given mutex.
Definition platform.c:26