ResourceLib::BindHandle

ResourceLib::BindHandle
Scaleform::GFx::ResourceLib::BindHandle
Declaration
class BindHandle;
Description

BindHandle is used to effectively share resources . It binds a resource and prevents other threads from loading the resource while it is accessed by a particular thread.

Data Members
Data Member 
Description 
ResolveState of the resource. 
Methods
Method 
Description 
Release the bind on resource. 
Initializes the bind handle and sets the state of the resource as RS_Unbound. 
Cancels loading of the resource and is called if we are responsible for resolving the resource. 
Clears the bind handle so that it can be reused. 
Gets the error in case WaitForResolve returned 0. 
Obtains the resource pointer. 
Obtains the state of the resource based on which you can call different functions. 
Determines if the resource is available for loading by a thread. 
Determines if we need to resolve the resource. If so, either ResolveResource or CancelResolve can be called to resolve the resource. 
Called if we are responsible for resolving the resource. 
Waits to receive resource if we are not responsible for resolving. 
File

GFx_Resource.h