CAEN Utility  2.0.2
Utilities for CAEN projects
Mutex related functions

Platform independent functions to manage mutexes. More...

Functions

int32_t c_mutex_init (c_mutex_t *m)
 
int32_t c_mutex_lock (c_mutex_t *m)
 
int32_t c_mutex_trylock (c_mutex_t *m)
 
int32_t c_mutex_unlock (c_mutex_t *m)
 
int32_t c_mutex_destroy (c_mutex_t *m)
 

Detailed Description

Platform independent functions to manage mutexes.

Function Documentation

◆ c_mutex_init()

int32_t c_mutex_init ( c_mutex_t m)

Initialize mutex

Parameters
[out]ma pointer to uninitialized c_mutex_t

Definition at line 288 of file CAENThread.c.

Here is the caller graph for this function:

◆ c_mutex_lock()

int32_t c_mutex_lock ( c_mutex_t m)

Lock mutex

Parameters
[in]ma pointer to initialized c_mutex_t

Definition at line 316 of file CAENThread.c.

Here is the caller graph for this function:

◆ c_mutex_trylock()

int32_t c_mutex_trylock ( c_mutex_t m)

Try to lock mutex

Parameters
[in]ma pointer to initialized c_mutex_t

Definition at line 340 of file CAENThread.c.

◆ c_mutex_unlock()

int32_t c_mutex_unlock ( c_mutex_t m)

Unlock mutex

Parameters
[in]ma pointer to initialized c_mutex_t

Definition at line 367 of file CAENThread.c.

Here is the caller graph for this function:

◆ c_mutex_destroy()

int32_t c_mutex_destroy ( c_mutex_t m)

Destroy mutex

Parameters
[in]ma pointer to initialized c_mutex_t

Definition at line 390 of file CAENThread.c.

Here is the caller graph for this function: