reactor-c 1.0
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
clock.h
Go to the documentation of this file.
1
12
13#ifndef CLOCK_H
14#define CLOCK_H
15
16#include "low_level_platform.h"
17
30
42
43#if !defined(LF_SINGLE_THREADED)
56int lf_clock_cond_timedwait(lf_cond_t* cond, instant_t wakeup_time);
57#endif
58
59#endif
int64_t instant_t
Time instant.
Definition tag.h:101
int lf_clock_cond_timedwait(lf_cond_t *cond, instant_t wakeup_time)
Block the calling thread on the condition variable until it is signaled or until wakeup_time is reach...
int lf_clock_interruptable_sleep_until_locked(environment_t *env, instant_t wakeup_time)
Block the calling thread until wakeup_time is reached or the thread is interrupted by an asynchronous...
int lf_clock_gettime(instant_t *now)
Retrieve the current physical time from the platform API.
Platform API support for the C target of Lingua Franca.
Execution environment.
Definition environment.h:52