IBNOS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions
Semaphores

Functions

struct semaphoresemaphoreCreate (uint32_t value)
 Creates a new kernel semaphore object. More...
 

Detailed Description

Implementation of Semaphores

Function Documentation

◆ semaphoreCreate()

struct semaphore* semaphoreCreate ( uint32_t  value)

Creates a new kernel semaphore object.

This function allocates and returns the memory for a new kernel semaphore object, which can for example be used for synchronization between multiple threads.

Parameters
valueInitial value of the semaphore object
Returns
Pointer to the new kernel semaphore object

Definition at line 68 of file semaphore.c.