SWDEV-290298 - add a flag to indicate the primary context active status
Change-Id: Ia31790706d3f855bc1eedf5ef874e471
This commit is contained in:
@@ -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_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user