|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| AtlasRequestHeader () | |
| ~AtlasRequestHeader () | |
| void | request (void *who, F32 priority, U32 reason) |
| Note a request from someone. | |
| void | cancel (void *who, U32 reason) |
| Cancel a request from someone. | |
| const F32 | calculateCumulativePriority () const |
| Calculate the total priority on this item. | |
| const U32 | getRefCount () const |
| Get the current reference count to this stub, based on how many uncanceled requests there are. | |
Static Public Member Functions | |
| static ARHNote * | allocNote () |
| static void | freeNote (ARHNote *note) |
Public Attributes | |
| ARHNote * | head |
| U32 | refCount |
Static Public Attributes | |
| static FreeListChunker< ARHNote > | smChunker |
Classes | |
| struct | ARHNote |
| AtlasRequestHeader::AtlasRequestHeader | ( | ) |
| AtlasRequestHeader::~AtlasRequestHeader | ( | ) |
| static ARHNote* AtlasRequestHeader::allocNote | ( | ) | [static] |
Note a request from someone.
This either adds a new ARHNote, or updates one if it exists.
Cancel a request from someone.
This will remove the appropriate ARHNote if it exists.
| const F32 AtlasRequestHeader::calculateCumulativePriority | ( | ) | const |
Calculate the total priority on this item.
It's best to cache the result in a member so that it's not needlessly churned.
| const U32 AtlasRequestHeader::getRefCount | ( | ) | const [inline] |
Get the current reference count to this stub, based on how many uncanceled requests there are.