When the lock is grabbed but a failure occurs an if condition handles that case.
After that block is a second block that then attempts to unlock that same lock.
Given that the lock failed, this lock cannot be in a locked state.
return status;
}
- status = F_true;
- }
-
- if (status == F_true) {
- found = F_true;
-
+ status = found = F_true;
dependency = global.thread->processs.array[id_dependency];
status_lock = controller_lock_read_process(process, global.thread, &dependency->active);
}
}
}
- else {
- f_thread_unlock(&global.thread->lock.process);
- }
if (status != F_true) {
found = F_false;