◆ CollectStatistics()
Collects statistics recorded during processing. This will only return statistics for the context. Use the CollectStatistics on AZ::IO::Streamer to get all statistics.
◆ FinalizeCompletedRequests()
bool AZ::IO::StreamerContext::FinalizeCompletedRequests |
( |
| ) |
|
Does the FinalizeRequest callback where appropriate and does some bookkeeping to finalize requests.
- Returns
- True if any requests were finalized, otherwise false.
◆ GetNewExternalRequest()
Gets a new file request, either by creating a new instance or picking one from the recycle bin. This version is for use by any system outside the stream stack and is thread safe. Once the reference count in the request hits zero it will automatically be recycled.
◆ GetNewExternalRequestBatch()
Gets a batch of new file requests, either by creating new instances or picking from the recycle bin. This version is for use by any system outside the stream stack and is thread safe. The owner needs to manually recycle these requests once they're done. Requests with a reference count of zero will automatically be recycled. If multiple requests need to be create this is preferable as it only locks the recycle bin once.
◆ GetNumPreparedRequests()
size_t AZ::IO::StreamerContext::GetNumPreparedRequests |
( |
| ) |
const |
Gets the number of prepared requests. Prepared requests are requests that are ready to be queued up for further processing.
◆ MarkRequestAsCompleted()
void AZ::IO::StreamerContext::MarkRequestAsCompleted |
( |
FileRequest * |
request | ) |
|
Marks a request as completed so the main thread in Streamer can close it out. This can be safely called from multiple threads.
◆ PopPreparedRequest()
FileRequest * AZ::IO::StreamerContext::PopPreparedRequest |
( |
| ) |
|
Gets the next prepared request that should be queued. Prepared requests are requests that are ready to be queued up for further processing.
◆ RejectRequest()
Rejects a request by removing it from the chain and recycling it. Only requests without children can be rejected. If the rejected request has a parent it might need to be processed further.
- Parameters
-
request | The request to remove and recycle. |
- Returns
- The parent request of the rejected request or null if there was no parent.
◆ WakeUpSchedulingThread()
void AZ::IO::StreamerContext::WakeUpSchedulingThread |
( |
| ) |
|
Causes the main thread for streamer to wake up and process any pending requests. If the thread is already awake, nothing happens.
The documentation for this class was generated from the following file:
- Code/Framework/AzCore/AzCore/IO/Streamer/StreamerContext.h