StaticMutex

constructor()(source)

Allocate a new StaticMutex.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.


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

Allocate a new StaticMutex using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

scope

The AutofreeScope to allocate this structure in.


constructor(mutex: Mutex?)(source)

Allocate a new StaticMutex.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.

Parameters

mutex

constructor(mutex: Mutex?, scope: <Error class: unknown class>)(source)

Allocate a new StaticMutex using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

mutex
scope

The AutofreeScope to allocate this structure in.


constructor(glibStaticMutexPointer: <Error class: unknown class><<Error class: unknown class>>)(source)