]> Kevux Git Server - controller/commit
Update: Reduce the number of lock requests to check if process is interrupted.
authorKevin Day <Kevin@kevux.org>
Sat, 22 Nov 2025 14:22:59 +0000 (08:22 -0600)
committerKevin Day <Kevin@kevux.org>
Sat, 22 Nov 2025 14:22:59 +0000 (08:22 -0600)
commit299960c74c4a78c83ab3e2b422e24d49a15c5dab
treee25bee94d598ae70653e6567b198700e3343b7c3
parente73d10c141d377c9d0670c5325c98d5f68f73f2d
Update: Reduce the number of lock requests to check if process is interrupted.

The general rule is to check each arbitrarily large loop or between long running functions for interrupt.
Each lock attempt is also checked for interrupt before locking.

This is resulting in a bit too many checks (which are to some extend expensive because checking requires a lock).

Many of these checks are back to back because some explicit checks are called before normal locking requests (which themselves perform explicit checks).
sources/c/program/controller/init/signal.c
sources/c/program/controller/main/entry.c
sources/c/program/controller/main/entry/preprocess.c
sources/c/program/controller/main/entry/process.c
sources/c/program/controller/main/instance/prepare.c
sources/c/program/controller/main/instance/wait.c
sources/c/program/controller/main/rule/execute.c
sources/c/program/controller/main/rule/instance.c
sources/c/program/controller/main/thread/signal.c