diff options
author | Chris Robinson <[email protected]> | 2018-02-10 21:42:45 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-02-11 06:14:18 -0800 |
commit | b11e31fbfd6744a6d938ebb4a0e85c173386322a (patch) | |
tree | 67f4ddad035d94dc02716c5929726f9225e4498c /common/threads.h | |
parent | 1e93122470445810a77ee549c5945ead44fd5676 (diff) |
Clear stale 'post's on the event semphaphore
Diffstat (limited to 'common/threads.h')
-rw-r--r-- | common/threads.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/threads.h b/common/threads.h index ffd7fac5..9a6fe1f7 100644 --- a/common/threads.h +++ b/common/threads.h @@ -237,6 +237,7 @@ int alsem_init(alsem_t *sem, unsigned int initial); void alsem_destroy(alsem_t *sem); int alsem_post(alsem_t *sem); int alsem_wait(alsem_t *sem); +int alsem_trywait(alsem_t *sem); int altss_create(altss_t *tss_id, altss_dtor_t callback); void altss_delete(altss_t tss_id); |