reactor-c
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
platform.h
Go to the documentation of this file.
1
15
typedef
void
*
lf_platform_mutex_ptr_t
;
19
lf_platform_mutex_ptr_t
lf_platform_mutex_new
();
23
void
lf_platform_mutex_free
(
lf_platform_mutex_ptr_t
mutex);
29
int
lf_platform_mutex_lock
(
lf_platform_mutex_ptr_t
mutex);
35
int
lf_platform_mutex_unlock
(
lf_platform_mutex_ptr_t
mutex);
36
41
int
lf_thread_id
();
lf_platform_mutex_free
void lf_platform_mutex_free(lf_platform_mutex_ptr_t mutex)
Free all resources associated with the provided mutex.
Definition
platform.c:25
lf_platform_mutex_unlock
int lf_platform_mutex_unlock(lf_platform_mutex_ptr_t mutex)
Release the given mutex.
Definition
platform.c:27
lf_platform_mutex_new
lf_platform_mutex_ptr_t lf_platform_mutex_new()
Create a new mutex and return (a pointer to) it.
Definition
platform.c:18
lf_thread_id
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
lf_platform_mutex_ptr_t
void * lf_platform_mutex_ptr_t
Pointer to the platform-specific implementation of a mutex.
Definition
platform.h:15
lf_platform_mutex_lock
int lf_platform_mutex_lock(lf_platform_mutex_ptr_t mutex)
Acquire the given mutex.
Definition
platform.c:26
platform
api
platform.h
Generated by
1.12.0