axl_bool vortex_mutex_create_full ( VortexMutex mutex_def,
VortexMutexConf  conf 
)

Allows to create a new mutex to protect critical sections to be executed by several threads at the same time, with extended options.

To create a mutex you must:

1 // declare a mutex
2 VortexMutex mutex;
3 
4 // init it
5 if (! vortex_mutex_create_full (&mutex)) {
6  // failed to init mutex
7 }
8 // mutex created
Parameters
mutex_defA reference to the mutex to be initialized.
conf
Returns
axl_true if the function created the mutex, otherwise axl_false is returned.

References VORTEX_MUTEX_CONF_NONRECURSIVE, and VORTEX_MUTEX_CONF_RECURSIVE.

Referenced by vortex_mutex_create().