SWDEV-290298 - add a flag to indicate the primary context active status

Change-Id: Ia31790706d3f855bc1eedf5ef874e471
Tento commit je obsažen v:
haoyuan2 authored and Maneesh Gupta committed 2021-12-09 23:28:54 -05:00
1 rodič aedbad0109
revize 439af94dd9
3 files changed
+14 -1

No files matched your search

+9
Zobrazit soubor
@@ -278,9 +278,18 @@ class HostQueue : public CommandQueue {
//! Reset the command batch list
void ResetSubmissionBatch() { head_ = nullptr; }
//! Set queue status
void SetQueueStatus() { isActive_ = true; }
//! Get queue status
bool GetQueueStatus() { return isActive_; }
private:
Command* head_; //!< Head of the batch list
Command* tail_; //!< Tail of the batch list
//! True if this command queue is active
bool isActive_;
};