reactor-c
C Runtime for Lingua Franca
|
Platform API for runtime plugins to use while sharing implementation source code and binaries with the core and with each other. More...
Go to the source code of this file.
Typedefs | |
typedef void * | lf_platform_mutex_ptr_t |
Pointer to the platform-specific implementation of a mutex. | |
Functions | |
lf_platform_mutex_ptr_t | lf_platform_mutex_new () |
Create a new mutex and return (a pointer to) it. | |
void | lf_platform_mutex_free (lf_platform_mutex_ptr_t mutex) |
Free all resources associated with the provided mutex. | |
int | lf_platform_mutex_lock (lf_platform_mutex_ptr_t mutex) |
Acquire the given mutex. | |
int | lf_platform_mutex_unlock (lf_platform_mutex_ptr_t mutex) |
Release the given mutex. | |
int | lf_thread_id () |
The ID of the current thread. The only guarantee is that these IDs will be a contiguous range of numbers starting at 0. | |
Platform API for runtime plugins to use while sharing implementation source code and binaries with the core and with each other.
typedef void* lf_platform_mutex_ptr_t |
Pointer to the platform-specific implementation of a mutex.
void lf_platform_mutex_free | ( | lf_platform_mutex_ptr_t | mutex | ) |
Free all resources associated with the provided mutex.
int lf_platform_mutex_lock | ( | lf_platform_mutex_ptr_t | mutex | ) |
Acquire the given mutex.
lf_platform_mutex_ptr_t lf_platform_mutex_new | ( | ) |
Create a new mutex and return (a pointer to) it.
int lf_platform_mutex_unlock | ( | lf_platform_mutex_ptr_t | mutex | ) |
Release the given mutex.
int lf_thread_id | ( | ) |
The ID of the current thread. The only guarantee is that these IDs will be a contiguous range of numbers starting at 0.
The ID of the current thread. The only guarantee is that these IDs will be a contiguous range of numbers starting at 0.