diff options
author | Clément Bénier <clement.benier@iot.bzh> | 2018-07-03 18:34:11 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-07-10 07:51:56 +0000 |
commit | bac7d6da81ef3876dc8cf6f50b1d602000a96749 (patch) | |
tree | 1feae5ee3fe194c25ca6057c9673a72f8fd35c48 /ctl-lib/ctl-timer.h | |
parent | 4a72073d15248dbb3c9d88377405ad44e75f6d1b (diff) |
asynchronism for test: LockWait added
added LockWait to wait for incoming events, as soon as an event is
received, the wait is unlocked
You can indicate the timeout
Change-Id: If29ca754618edb5b9fdc32c1c40b47016c6fc88a
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-timer.h')
-rw-r--r-- | ctl-lib/ctl-timer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ctl-lib/ctl-timer.h b/ctl-lib/ctl-timer.h index 389d518..71f87af 100644 --- a/ctl-lib/ctl-timer.h +++ b/ctl-lib/ctl-timer.h @@ -46,6 +46,7 @@ int TimerEvtInit (AFB_ApiT apiHandle); void TimerEvtStart(AFB_ApiT apiHandle, TimerHandleT *timerHandle, timerCallbackT callback, void *context); void TimerEvtStop(TimerHandleT *timerHandle); +uint64_t LockWait(AFB_ApiT apiHandle, uint64_t utimeout); #ifdef __cplusplus } #endif |