Add setter function to event class

Related-To: NEO-5244

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2021-04-09 17:52:17 +00:00
committed by Compute-Runtime-Automation
parent a56b413392
commit 3909bd0fea
5 changed files with 29 additions and 5 deletions

View File

@@ -46,6 +46,7 @@ struct Event : _ze_event_handle_t {
virtual NEO::GraphicsAllocation &getAllocation();
void increasePacketsInUse() { packetsInUse++; }
void setPacketsInUse(uint32_t newPacketsInUse) { packetsInUse = newPacketsInUse; }
void resetPackets() { packetsInUse = 0; }
uint64_t getGpuAddress() { return gpuAddress; }
void *getHostAddress() { return hostAddress; }