rocr: Fix error when internal signal is destroyed (#1845)
Fix error when we destroy internal signals during shutdown. Fix init dependency on uninitialized value.
This commit is contained in:
@@ -682,10 +682,10 @@ class Runtime {
|
||||
};
|
||||
|
||||
struct AsyncEventsInfo {
|
||||
bool monitor_exceptions;
|
||||
AsyncEventsControl control;
|
||||
AsyncEvents events;
|
||||
ConcurrentAsyncEvents new_events;
|
||||
bool monitor_exceptions;
|
||||
|
||||
AsyncEventsInfo(bool exceptions);
|
||||
~AsyncEventsInfo();
|
||||
|
||||
@@ -2839,7 +2839,7 @@ void Runtime::AsyncEventsControl::Shutdown() {
|
||||
os::WaitForThread(thread_);
|
||||
os::CloseThread(thread_);
|
||||
thread_ = NULL;
|
||||
HSA::hsa_signal_destroy(wake);
|
||||
core::Signal::Convert(wake)->DestroySignal();
|
||||
}
|
||||
|
||||
void Runtime::AsyncEvents::PushBack(hsa_signal_t signal,
|
||||
|
||||
Reference in New Issue
Block a user