axl_bool myqtt_mutex_create ( MyQttMutex mutex_def)

Allows to create a new 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 MyQttMutex mutex;
4 // init it
5 if (! myqtt_mutex_create (&mutex)) {
6  // failed to init mutex
7 }
8 // mutex created
mutex_defA reference to the mutex to be initialized.
axl_true if the function created the mutex, otherwise axl_false is returned.

Referenced by myqtt_async_queue_new(), myqtt_ctx_new(), myqtt_hash_new_full(), myqtt_init_ctx(), myqtt_thread_pool_init(), myqttd_ctx_new(), and myqttd_init().