RecMutex
Description:
public RecMutex ()
Initializes a 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 on an already initialized RecMutex leads to undefined behaviour.
To undo the effect of RecMutex when a recursive mutex is no longer needed, use g_rec_mutex_clear
.
Parameters:
this |
an uninitialized RecMutex |