From 7f0b013f7f50566abac6bc2505e9eb06383a2cdb Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 26 Oct 1999 17:06:19 +0000 Subject: [PATCH] Eliminate race to destroy mutexes and condition variables that was causing failures on multiprocessors. --- bin/tests/tasks/t_tasks.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/tests/tasks/t_tasks.c b/bin/tests/tasks/t_tasks.c index 1ee8819180..9792a75f4c 100644 --- a/bin/tests/tasks/t_tasks.c +++ b/bin/tests/tasks/t_tasks.c @@ -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;