StaticRecMutex

class StaticRecMutex(val glibStaticRecMutexPointer: <Error class: unknown class><<Error class: unknown class>>) : ProxyInstance(source)

A #GStaticRecMutex works like a #GStaticMutex, but it can be locked multiple times by one thread. If you enter it n times, you have to unlock it n times again to let other threads lock it. An exception is the function g_static_rec_mutex_unlock_full(): that allows you to unlock a #GStaticRecMutex completely returning the depth, (i.e. the number of times this mutex was locked). The depth can later be used to restore the state of the #GStaticRecMutex by calling g_static_rec_mutex_lock_full(). In GLib 2.32, #GStaticRecMutex has been deprecated in favor of #GRecMutex.

Even though #GStaticRecMutex is not opaque, it should only be used with the following functions.

All of the g_static_rec_mutex_* functions can be used even if g_thread_init() has not been called. Then they do nothing, apart from g_static_rec_mutex_trylock(), which does nothing but returning true.

Constructors

Link copied to clipboard
constructor()

Allocate a new StaticRecMutex.

constructor(scope: <Error class: unknown class>)

Allocate a new StaticRecMutex using the provided AutofreeScope.

constructor(glibStaticRecMutexPointer: <Error class: unknown class><<Error class: unknown class>>)

Properties

Link copied to clipboard
val glibStaticRecMutexPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val handle: <Error class: unknown class>

Functions

Link copied to clipboard
open override fun addCleaner(cleaner: <Error class: unknown class>): Boolean

Registers a cleaner to be executed when this proxy object is garbage collected.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compare two proxy instances for equality. This will compare both the type of the instances, and their memory addresses.

Link copied to clipboard
fun free()

This is deprecated since version 2.32.

Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun init()

This is deprecated since version 2.32.

Link copied to clipboard
fun lock()

This is deprecated since version 2.32.

Link copied to clipboard
fun lockFull(depth: <Error class: unknown class>)

This is deprecated since version 2.32.

Link copied to clipboard
open override fun removeCleaner(cleaner: <Error class: unknown class>): Boolean

Removes a previously registered cleaner from this proxy object.

Link copied to clipboard

This is deprecated since version 2.32.

Link copied to clipboard
fun unlock()

This is deprecated since version 2.32.

Link copied to clipboard
fun unlockFull(): <Error class: unknown class>

This is deprecated since version 2.32.