SWDEV-301667 - Cleanup unused paths

- Refactor code and cleanup logic for callback saving for event records

Change-Id: I5c56aa8e9c968a5bca70fb07ad1796da318e9e89
Этот коммит содержится в:
Saleel Kudchadker
2023-11-01 05:22:47 +00:00
родитель 6d6465cb96
Коммит 1338ff37e8
7 изменённых файлов: 7 добавлений и 50 удалений
-12
Просмотреть файл
@@ -264,9 +264,6 @@ class HostQueue : public CommandQueue {
// an invalid access
command->retain();
if (command->profilingInfo().marker_ts_) {
markerTsCount_++;
}
// Release the last command in the batch
if (lastEnqueueCommand_ != nullptr) {
lastEnqueueCommand_->release();
@@ -287,23 +284,14 @@ class HostQueue : public CommandQueue {
//! Get queue status
bool GetQueueStatus() { return isActive_; }
//! Get markerTsCount
uint32_t GetMarkerTsCount() const { return markerTsCount_; }
//! Reset counter
void ResetMarkerTsCount() { markerTsCount_ = 0; }
private:
Command* head_; //!< Head of the batch list
Command* tail_; //!< Tail of the batch list
//! True if this command queue is active
bool isActive_;
uint32_t markerTsCount_; //!< Count of TS markers
};
class DeviceQueue : public CommandQueue {
public:
DeviceQueue(Context& context, //!< Context object