]> Kevux Git Server - fll/commitdiff
Regression: Use correct function for mutex lock.
authorKevin Day <thekevinday@gmail.com>
Wed, 30 Mar 2022 01:08:02 +0000 (20:08 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 30 Mar 2022 01:08:02 +0000 (20:08 -0500)
The lock is a mutex lock and not a lock.

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

index 3f9489a27cc0f1253bd6ad3618b0712d84c01517..ee3c08fcda5e553d0d325d607ede6773a2a7ce12 100644 (file)
@@ -23,7 +23,7 @@ extern "C" {
     status = f_thread_lock_create(0, &lock->rule);
     if (F_status_is_error(status)) return status;
 
-    status = f_thread_lock_create(0, &lock->alert);
+    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);