new

fun new(): Mutex(source)

⚠️ Deprecated ⚠️

This is deprecated since version 2.32.

GMutex can now be statically allocated, or embedded in structures and initialised with g_mutex_init().

Allocates and initializes a new #GMutex.

Return

a newly allocated #GMutex. Use g_mutex_free() to free