ResourceWeakLib

ResourceWeakLib
Scaleform::GFx::ResourceWeakLib
Declaration
class ResourceWeakLib : public ResourceLibBase;
Description

ResourceWeakLib is a weak library, owned by ResourceLib and also owned/shared by the movies. ResourceWeakLib can exist without the strong library, but not the other way around. 

Any sharable resource loaded into memory always exists in a weak library; however, the weak library does not AddRef to the resource. If the resource is released because its reference count is decremented, it will also update ResourceWeakLib in a thread safe manner.

Methods
Method 
Description 
Looks up resource and insert its slot. 
Obtains the heap that should be used for image allocations with this resource library. 
Looks up resource, but only if resolved. 
Queries an AddRefed list of all resources, used for debug/statistics display. 
Obtains a pointer to the strong library ResourceLib
Determines if the resource is pinned in the strong library. 
Pins a resource in the memory and the resource remains alive and sharable. 
Virtual function called when the reference count of the resource has reached 0 and the resource is about to die. 
Initializes a weak pointer to the strong library container ResourceLib
Unpins all resources in the library. 
Unpins a resource from the memory and releases it. 
File

GFx_Resource.h