fix(library/module): deadlock
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
d30c600eb2
commit
f8255ddac6
1 changed files with 2 additions and 0 deletions
|
@ -303,6 +303,7 @@ struct import_modules_fn {
|
|||
while (auto t = next_task()) {
|
||||
(*t)(m_senv);
|
||||
}
|
||||
m_asynch_cv.notify_all();
|
||||
} catch (exception ex) {
|
||||
thread_exceptions[i].reset(ex.clone());
|
||||
} catch (...) {
|
||||
|
@ -314,6 +315,7 @@ struct import_modules_fn {
|
|||
while (auto t = next_task()) {
|
||||
(*t)(m_senv);
|
||||
}
|
||||
m_asynch_cv.notify_all();
|
||||
for (auto & th : extra_threads)
|
||||
th->join();
|
||||
} catch (...) {
|
||||
|
|
Loading…
Add table
Reference in a new issue