mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 14:29:59 -04:00
Eliminate race to destroy mutexes and condition variables that was causing
failures on multiprocessors.
This commit is contained in:
parent
90ace4c9e0
commit
7f0b013f7f
1 changed files with 4 additions and 4 deletions
|
|
@ -995,11 +995,11 @@ t_tasks4() {
|
|||
++T4_nprobs;
|
||||
}
|
||||
|
||||
isc_mutex_destroy(&T4_mx);
|
||||
isc_condition_destroy(&T4_cv);
|
||||
isc_task_detach(&task);
|
||||
isc_taskmgr_destroy(&tmgr);
|
||||
isc_mem_destroy(&mctx);
|
||||
isc_condition_destroy(&T4_cv);
|
||||
isc_mutex_destroy(&T4_mx);
|
||||
|
||||
result = T_UNRESOLVED;
|
||||
|
||||
|
|
@ -1216,11 +1216,11 @@ t_tasks7() {
|
|||
++T7_nprobs;
|
||||
}
|
||||
|
||||
isc_mutex_destroy(&T7_mx);
|
||||
isc_condition_destroy(&T7_cv);
|
||||
isc_task_detach(&task);
|
||||
isc_taskmgr_destroy(&tmgr);
|
||||
isc_mem_destroy(&mctx);
|
||||
isc_condition_destroy(&T7_cv);
|
||||
isc_mutex_destroy(&T7_mx);
|
||||
|
||||
result = T_UNRESOLVED;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue