]> Kevux Git Server - controller/commit
Bugfix: Instance thread can deadlock on interrupt.
authorKevin Day <Kevin@kevux.org>
Tue, 29 Jul 2025 02:57:38 +0000 (21:57 -0500)
committerKevin Day <Kevin@kevux.org>
Tue, 29 Jul 2025 03:14:00 +0000 (22:14 -0500)
commita6c48608f4bbec94d3c5939d165ce8cee6eab53b
tree57ef92aa0d5116c0db0c224ae77e946181a81d59
parent3e9f838e9f67f9bb1a7042e1c24d3f169aa037d7
Bugfix: Instance thread can deadlock on interrupt.

The instance thread can deadlock on interrupt because the thread enable is not being checked before performing the lock.
Add a wait and retry lock that includes checking if enabled.
sources/c/program/controller/main/thread/instance.c