]> Kevux Git Server - fll/commitdiff
Bugfix: Double creation of mutex alert lock.
authorKevin Day <Kevin@kevux.org>
Sat, 13 Jul 2024 03:48:37 +0000 (22:48 -0500)
committerKevin Day <Kevin@kevux.org>
Sat, 13 Jul 2024 03:48:37 +0000 (22:48 -0500)
The lock.alert mutex lock must not be created twice.

level_3/controller/c/lock/private-lock.c

index 311d2e80615010c727aa03ef51b70a45dc226587..34653b110519cb39fb38743fd58c1924aaff2c3e 100644 (file)
@@ -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;