By default, when the release occurs, the entry is marked "complete" unless you have called setComplete(false) before then
|
Public Member Functions |
|
| WriteRequest (WorldState *&target, bool block, unsigned int frame_number) |
| | stores the oldest unreferenced WorldState into tgt, optionally blocking if an update is currently in progress for the same frame
|
|
| WriteRequest (const WriteRequest &r) |
| | shallow copy constructor supported
|
|
WriteRequest & | operator= (const WriteRequest &r) |
| | shallow assignment supported
|
|
unsigned int | getStatus () const |
| | returns the WorldStatePool::status value for the target WorldState entry (see documentation for WorldStatePool::status)
|
|
void | setStatus (unsigned int status) |
| | sets the WorldStatePool::status value for the target WorldState entry (see documentation for WorldStatePool::status)
|
|
bool | getComplete () const |
| | returns the WorldStatePool::complete value for the target WorldState entry (see documentation for WorldStatePool::complete)
|
|
void | setComplete (bool complete) |
| | returns the WorldStatePool::complete value for the target WorldState entry (see documentation for WorldStatePool::complete)
|
Public Attributes |
|
WorldState * | src |
| | will be set to the previously written element, so you can copy over unmodified values
|
|
ReadRequest | srcRequest |
| | used to get src
|
|
unsigned int | frame |
| | should be initialized to the frame number about to be written
|
Protected Attributes |
|
unsigned int | statusCache |
| | when using resource, this field is set to the status field for that entry, and when released, this value is stored back
|
|
bool | completeCache |
| | when using resource, this field is set to the complete flag for that entry, and when released, this value is stored back
|