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

Change-Id: Ia31790706d3f855bc1eedf5ef874e471
This commit is contained in:
haoyuan2
2021-12-01 09:17:04 -08:00
committed by Maneesh Gupta
parent aedbad0109
commit 439af94dd9
3 changed files with 14 additions and 1 deletions
+9
View File
@@ -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_;
};