Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Core.RefCount


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
//=============================================================================
// A reference counted object
//	-	You have to explicitly AddRef and Release() the object
//		Just like using COM or DirectX 
//	-	This is not ideal, however for now its the most elegant way
//		of managing deletable objects without adding features to the compiler.
//	-	NOTE: The object begins with a refcount of 0, which means the inital
//		owner should addref() it after allocation
//=============================================================================
class RefCount extends Object
	noexport
	native;
 
var private const int m_RefCount;

#if IG_UC_LATENT_STACK_CLEANUP // Ryan: Latent stack cleanup
var transient private const Array<INT> LatentStackLocations;
#endif

// increment reference count, return new value
native(199) final function int AddRef();

// decrement reference count, return new value
// when the refcount reaches 0, the object is deleted
native(198) final function int Release();

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: ne 5.9.2004 16:01:00.000 - Creation time: st 23.5.2018 00:10:46.707 - Created with UnCodeX