SWDEV-335780 - Indicate if handler is queued

Maintain status of handler callback. For event records we no longer
submit callbacks to reduce the load on the async handler thread. However
without a callback we leak command memory/decrement refcounts. Indicate
status of the handler which we can use to queue a callback when
finish is called.

Change-Id: I89fd02f3d047a0e8162664ee17581a14795f1928
Αυτή η υποβολή περιλαμβάνεται σε:
Saleel Kudchadker
2022-06-13 14:33:25 -07:00
γονέας 4975f69337
υποβολή 5df34a2f7a
6 αρχεία άλλαξαν με 20 προσθήκες και 5 διαγραφές
@@ -2659,7 +2659,7 @@ void Device::getHwEventTime(const amd::Event& event, uint64_t* start, uint64_t*
// ================================================================================================
bool Device::IsCacheFlushed(Device::CacheState state) const {
return ROC_EVENT_NO_FLUSH ?
return ROC_EVENT_NO_FLUSH ?
(static_cast<int>(state) == cache_state_.load(std::memory_order_relaxed)) : true;
}