mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
21 lines
406 B
C++
21 lines
406 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <level_zero/zes_api.h>
|
|
namespace L0 {
|
|
|
|
class Events {
|
|
public:
|
|
virtual ~Events(){};
|
|
virtual ze_result_t eventRegister(zes_event_type_flags_t events) = 0;
|
|
virtual bool eventListen(zes_event_type_flags_t &pEvent, uint32_t timeout) = 0;
|
|
virtual void init() = 0;
|
|
};
|
|
|
|
} // namespace L0
|