Once

class Once(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null) : ProxyInstance

A #GOnce struct controls a one-time initialization function. Any one-time initialization function must have its own unique #GOnce struct.

Skipped during bindings generation

  • parameter func: ThreadFunc

  • function init_enter: In/Out parameter is not supported

  • parameter location: Unsupported pointer to primitive type

  • parameter location: Unsupported pointer to primitive type

  • function init_leave: In/Out parameter is not supported

  • parameter location: Unsupported pointer to primitive type

Since

2.4

Constructors

Link copied to clipboard
constructor()

Allocate a new Once.

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

Allocate a new Once using the provided AutofreeScope.

constructor(status: OnceStatus, retval: <Error class: unknown class>)

Allocate a new Once.

constructor(status: OnceStatus, retval: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new Once using the provided AutofreeScope.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Properties

Link copied to clipboard
val glibOncePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val handle: <Error class: unknown class>?
Link copied to clipboard
var retval: <Error class: unknown class>

the value returned by the call to the function, if @status is %G_ONCE_STATUS_READY

Link copied to clipboard

the status of the #GOnce

Functions

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
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String