128// The equeue_sema_create and equeue_sema_destroy manage the lifetime
129// of the semaphore. On error, equeue_sema_create should return a negative
130// error code.
131//
132// The equeue_sema_signal marks a semaphore as signalled such that the next
133// equeue_sema_wait will return true.
134//
135// The equeue_sema_wait waits for a semaphore to be signalled or returns
136// immediately if equeue_sema_signal had been called since the last
137// equeue_sema_wait. The equeue_sema_wait returns true if it detected that
138// equeue_sema_signal had been called. If ms is negative, equeue_sema_wait
139// will wait for a signal indefinitely.
140int equeue_sema_create(equeue_sema_t *sema);
141void equeue_sema_destroy(equeue_sema_t *sema);
142void equeue_sema_signal(equeue_sema_t *sema);
143bool equeue_sema_wait(equeue_sema_t *sema, int ms);
144
145
146#ifdef __cplusplus
147 }
148#endif
149
150#endif
151
152/** @}*/
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.