A thread specific collection of double-buffered and algorithm specific resources. More...
#include <doublebufferedresource.h>
Public Member Functions | |
ThreadSpecificStorage (FrameScheduler *Scheduler_) | |
A constructor that automatically creates the resources it supports. | |
virtual | ~ThreadSpecificStorage () |
Deletes all the resources. | |
FrameScheduler * | GetFrameScheduler () |
Get a pointer to the FrameScheduler that owns this resource. More... | |
template<typename DBR > | |
DBR & | GetResource (const Whole &ResourceID) |
Get a Specific kind of double buffered resource. More... | |
Logger & | GetUsableLogger () |
Get the usable logger for this thread specific resource. More... | |
void | SwapAllBufferedResources () |
The commitable and usable version of every double buffered resource for this thread specific storage will be swapped. | |
A thread specific collection of double-buffered and algorithm specific resources.
This class is intended to be expanded via derived classes if it is to return extra resource types
Definition at line 145 of file doublebufferedresource.h.
|
inline |
Get a pointer to the FrameScheduler that owns this resource.
This is not required very often by application code, but is used in places in this scheduler library. This is primarily used to gain access to commitable parts of double buffered resources. This pointer does not confer ownership.
Definition at line 181 of file doublebufferedresource.h.
|
inline |
Get a Specific kind of double buffered resource.
ResourceID | The ID the resource provided. |
Definition at line 166 of file doublebufferedresource.h.
|
inline |
Get the usable logger for this thread specific resource.
Definition at line 172 of file doublebufferedresource.h.