ReplicaNet and RNLobby  1
Static Public Member Functions | List of all members
PlatformHeap Class Reference

#include <PlatformHeap.h>

Static Public Member Functions

static void ForceFree (void)
 

Detailed Description

This class uses a list of PlatformHeapBlock classes to make sure that all blocks of memory are registered for destruction when PlatformHeap::ForceFree() is called. Each PlatformHeapBlock class is destructed in the reverse order they were added to the stack, it is a LIFO stack. This class can be used to make sure shutdown functions are called and pointers properly cleared.

Member Function Documentation

static void ForceFree ( void  )
static

Deletes all heap blocks on the stack in reverse order. This should only be called when all threads accessing memory registered using this class are stopped.

Referenced by MyService::Main().