Huggle  build:^490^dce1e5c
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Huggle::GC Class Reference

Garbage collector that can be used to collect some objects. More...

#include <gc.hpp>

Static Public Member Functions

static void DeleteOld ()
 Function that walks through the list and delete these that can be deleted.
 

Static Public Attributes

static QList< Collectable * > list
 List of all managed queries that qgc keeps track of.
 
static QMutex Lock
 QMutex that is used to lock the GC::list object. More...
 

Detailed Description

Garbage collector that can be used to collect some objects.

Every object must be derived from Collectable, otherwise it must not be handled by garbage collector

Definition at line 38 of file gc.hpp.

Member Data Documentation

QMutex Huggle::GC::Lock
static

QMutex that is used to lock the GC::list object.

This lock needs to be aquired every time when you need to access this list from any thread during runtime

Definition at line 47 of file gc.hpp.

Referenced by DeleteOld(), and Huggle::Collectable::SafeDelete().


The documentation for this class was generated from the following files: