Sysman: Enabling events for Windows

Enabling events for Sysman in Windows Os Specific path HAL.
This commit is contained in:
Daniel Enriquez
2020-11-05 18:23:38 -08:00
committed by Compute-Runtime-Automation
parent a18f2aa3ae
commit a116d454fe
16 changed files with 366 additions and 30 deletions

View File

@@ -45,7 +45,7 @@ ze_result_t DriverHandleImp::sysmanEventsListen(
auto timeToExitLoop = std::chrono::steady_clock::now() + std::chrono::milliseconds(timeout);
do {
for (uint32_t devIndex = 0; devIndex < count; devIndex++) {
gotSysmanEvent = L0::SysmanDevice::fromHandle(phDevices[devIndex])->deviceEventListen(pEvents[devIndex]);
gotSysmanEvent = L0::SysmanDevice::fromHandle(phDevices[devIndex])->deviceEventListen(pEvents[devIndex], timeout);
if (gotSysmanEvent) {
*pNumDeviceEvents = 1;
break;