axl_bool vortex_mutex_create ( VortexMutex mutex_def)

Allows to create a new non-recursive mutex to protect critical sections to be executed by several threads at the same time.

To create a mutex you must:

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

References VORTEX_MUTEX_CONF_NONRECURSIVE, and vortex_mutex_create_full().

Referenced by vortex_async_queue_new(), vortex_channel_create_wait_reply(), vortex_ctx_new(), vortex_external_connection_new(), vortex_external_setup_new(), vortex_hash_new_full(), vortex_http_setup_new(), vortex_init_ctx(), vortex_payload_feeder_new(), vortex_profiles_register(), vortex_profiles_register_extended_start(), vortex_queue_new(), vortex_support_init(), vortex_thread_pool_init(), and vortex_websocket_setup_new().