Initializes a glib.RecMutex so that it can be used.
This function is useful to initialize a recursive mutex that has been allocated on the stack, or as part of a larger structure.
It is not necessary to initialise a recursive mutex that has been statically allocated.
typedef struct { GRecMutex m; ... } Blob; Blob *b; b = g_new (Blob, 1); g_rec_mutex_init (&b->m);
Calling RecMutex.init on an already initialized glib.RecMutex leads to undefined behaviour.
To undo the effect of RecMutex.init when a recursive mutex is no longer needed, use RecMutex.clear.
2.32
Initializes a glib.RecMutex so that it can be used.
This function is useful to initialize a recursive mutex that has been allocated on the stack, or as part of a larger structure.
It is not necessary to initialise a recursive mutex that has been statically allocated.
Calling RecMutex.init on an already initialized glib.RecMutex leads to undefined behaviour.
To undo the effect of RecMutex.init when a recursive mutex is no longer needed, use RecMutex.clear.