From c586ae8a1aeb88cf9328dbe1d890208ea2923f09 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 12 Jul 2024 22:48:37 -0500 Subject: [PATCH] Bugfix: Double creation of mutex alert lock. The lock.alert mutex lock must not be created twice. --- level_3/controller/c/lock/private-lock.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/level_3/controller/c/lock/private-lock.c b/level_3/controller/c/lock/private-lock.c index 311d2e8..34653b1 100644 --- a/level_3/controller/c/lock/private-lock.c +++ b/level_3/controller/c/lock/private-lock.c @@ -26,9 +26,6 @@ extern "C" { status = f_thread_lock_create(0, &lock->rule); if (F_status_is_error(status)) return status; - status = f_thread_mutex_create(0, &lock->alert); - if (F_status_is_error(status)) return status; - status = f_thread_condition_create(0, &lock->alert_condition); if (F_status_is_error(status)) return status; -- 1.8.3.1