• Philippe Gerum's avatar
    lib/sem: introduce compact creation calls · a7a084ea
    Philippe Gerum authored
    Zero-initialized semaphores timed on the monotonic clock is the
    most common form used by applications. Allow people to write more
    compact code by providing creation calls and static initializers aimed
    at building these directly:
    
    - evl_new_sem(), EVL_SEM_INITIALIZER() for zero-init semaphores
      timed on the monotonic clock.
    
    - evl_new_sem_any() and EVL_SEM_ANY_INITIALIZER() usable for any
      initialization form, specifying the clock and init value.
    a7a084ea
sem.c 5.4 KB