f_status_t status = f_thread_mutex_create(0, &lock->alert);
if (F_status_is_error(status)) return status;
- //status = f_thread_mutex_create(0, &lock->listen);
- //if (F_status_is_error(status)) return status;
-
status = f_thread_mutex_create(0, &lock->print);
if (F_status_is_error(status)) return status;
status = f_thread_lock_create(0, &lock->rule);
if (F_status_is_error(status)) return status;
- status = f_thread_condition_create(0, &lock->alert_condition);
+ status = f_thread_lock_create(0, &lock->alert);
if (F_status_is_error(status)) return status;
- //status = f_thread_condition_create(0, &lock->listen_condition);
- //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;
return F_none;
}
return;
}
- // Use the alert lock to toggle enabled (being used as if it were a write like and signal lock).
+ // Use the alert lock to toggle enabled (using it as if it is a write like and a signal lock).
f_status_t status = f_thread_mutex_lock(&global.thread->lock.alert);
if (F_status_is_error(status)) {