Dex.Object

g Dex.Object Dex.Object

Subclasses:

Dex.Channel, Dex.Future, Dex.Scheduler

Methods

ref ()

unref ()

Virtual Methods

None

Fields

None

Class Details

class Dex.Object
Abstract:

Yes

DexObject is the basic building block of types defined within libdex. Futures, Schedulers, and Channels all inherit from Dex.Object which provides features like thread-safe weak pointers and memory management operations.

Objects that are integrating with GIO instead inherit from their natural type in GIO.

ref()
Returns:

the object with its reference count increased

Return type:

Dex.Object

Acquires a reference on the given object, and increases its reference count by one.

unref()

Releases a reference on the given object, and decreases its reference count by one.

If it was the last reference, the resources associated to the instance are freed.