Function bsem_init

Function Documentation

struct bsem *bsem_init(struct bsem *sem_in, uint32_t flags)

Initialize a binary semaphore.

Parameters:
  • sem_in – The semaphore to initialize. Can be NULL if RCSW_NOALLOC_HANDLE is not passed.

  • flags – Configuration flags. See bsem::flags for valid flags.

Returns:

The initialized binary semaphore, or NULL if an ERROR occurred.