Base Framework
Static Public Member Functions | List of all members
GarbageCollector Class Reference

#include <base/mem/GarbageCollector.h>

Static Public Member Functions

static bool isRunning ()
 
static void stop ()
 
static bool start ()
 
static void release (const AnyReference &reference)
 
static void release (AnyReference &reference)
 
static void release (AnyReference &&reference)
 

Detailed Description

Garbage collector.

Member Function Documentation

◆ isRunning()

static bool GarbageCollector::isRunning ( )
static

Returns true if the garbage collector is running.

◆ release() [1/3]

static void GarbageCollector::release ( AnyReference &&  reference)
static

Tells garbage collector tor release the given object. The reference will be set to nullptr.

◆ release() [2/3]

static void GarbageCollector::release ( AnyReference reference)
static

Tells garbage collector tor release the given object. The reference will be set to nullptr.

◆ release() [3/3]

static void GarbageCollector::release ( const AnyReference reference)
static

Tells garbage collector to release the given object. The object cannot be destructed until all references are removed.

◆ start()

static bool GarbageCollector::start ( )
static

Starts the garbage collector.

◆ stop()

static void GarbageCollector::stop ( )
static

Stops the garbage collector.