zephyr/include/posix
Juan Manuel Torres Palma 342da7ac72 posix: semaphore: fix bugs and simplify code
Modifies several functions that are causing wrong
behaviour.

 * semaphore.h: add missing restrict keyword.
 * sem_destroy(): check that nobody is waiting
   before destroying the object.
 * sem_timedwait(): simpify function logic and
   fix a bug when abstime > currtime, that passed
   ticks instead of ms to k_sem_take().
 * sem_wait(): avoid unnecessary checks.
 * sem_init(): add pshared value assertion.

Signed-off-by: Juan Manuel Torres Palma <j.m.torrespalma@gmail.com>
2018-03-21 14:27:47 -07:00
..
sys kernel: Add posix API for semaphore 2018-03-05 20:51:36 -05:00
posix_sched.h kernel: POSIX: Compatibility layer for scheduler APIs. 2018-02-21 19:17:28 -05:00
pthread.h kernel: Add posix API for semaphore 2018-03-05 20:51:36 -05:00
semaphore.h posix: semaphore: fix bugs and simplify code 2018-03-21 14:27:47 -07:00
signal.h kernel: POSIX: Compatibility layer for POSIX timer APIs. 2018-02-21 19:17:28 -05:00
time.h kernel: POSIX: Compatibility layer for POSIX timer APIs. 2018-02-21 19:17:28 -05:00
unistd.h kernel: POSIX: Compatibility layer for POSIX sleep APIs. 2018-02-21 19:17:28 -05:00