Add startAsyncThread interface to DebugSession

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2021-04-19 10:44:26 +00:00
committed by Compute-Runtime-Automation
parent a367476558
commit eb03fd7603
2 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,7 @@ struct DebugSession : _zet_debug_session_handle_t {
virtual ze_result_t readEvent(uint64_t timeout, zet_debug_event_t *event) = 0;
Device *getConnectedDevice() { return connectedDevice; }
virtual void startAsyncThread() = 0;
protected:
DebugSession(const zet_debug_config_t &config, Device *device) : connectedDevice(device){};

View File

@ -35,7 +35,13 @@ struct DebugSessionMock : public L0::DebugSession {
ze_result_t readEvent(uint64_t timeout, zet_debug_event_t *event) override {
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
}
void startAsyncThread() override {
asyncThreadStarted = true;
}
zet_debug_config_t config;
bool asyncThreadStarted = false;
};
} // namespace ult