From: Kevin Day Date: Wed, 30 Mar 2022 01:08:02 +0000 (-0500) Subject: Regression: Use correct function for mutex lock. X-Git-Tag: 0.5.9~51 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=03053049e655d17f28e37d0fd30f5422eb5fb86e;p=fll Regression: Use correct function for mutex lock. The lock is a mutex lock and not a lock. --- diff --git a/level_3/controller/c/lock/private-lock.c b/level_3/controller/c/lock/private-lock.c index 3f9489a..ee3c08f 100644 --- a/level_3/controller/c/lock/private-lock.c +++ b/level_3/controller/c/lock/private-lock.c @@ -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);