From: Kevin Day Date: Sat, 13 Jul 2024 03:48:37 +0000 (-0500) Subject: Bugfix: Double creation of mutex alert lock. X-Git-Tag: 0.6.11~20 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=c586ae8a1aeb88cf9328dbe1d890208ea2923f09;p=fll Bugfix: Double creation of mutex alert lock. The lock.alert mutex lock must not be created twice. --- 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;