mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add startAsyncThread interface to DebugSession
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
a367476558
commit
eb03fd7603
@ -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){};
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user