API Documentation


Support for atomic operations and synchronization

group sync

Typedefs

typedef uint32_t optimsoc_mutex_t

The mutex data type

The mutex data type which is actually hidden on purpose.

Functions

void optimsoc_mutex_init(optimsoc_mutex_t *mutex)

Initialize mutex

Initializes a mutex so that you can lock and unlock it later.

Parameters
  • mutex: Mutex to initialize

void optimsoc_mutex_lock(optimsoc_mutex_t *mutex)

Lock mutex

Lock a mutex

Parameters
  • mutex: Mutex to lock

void optimsoc_mutex_unlock(optimsoc_mutex_t *mutex)

Unlock mutex

Unlock a mutex

Parameters
  • mutex: Mutex to unlock