chore: revert "perf: avoid taking mutex on task deactivation" (#7590)
Likely introduced segfaults. Reverts leanprover/lean4#7572
This commit is contained in:
parent
160ca476a1
commit
f42a28f718
1 changed files with 0 additions and 6 deletions
|
|
@ -926,12 +926,6 @@ public:
|
|||
}
|
||||
|
||||
void deactivate_task(lean_task_object * t) {
|
||||
if (object * v = t->m_value) {
|
||||
lean_assert(t->m_imp == nullptr);
|
||||
lean_dec(v);
|
||||
free_task(t);
|
||||
return;
|
||||
}
|
||||
unique_lock<mutex> lock(m_mutex);
|
||||
if (object * v = t->m_value) {
|
||||
lean_assert(t->m_imp == nullptr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue