]> Kevux Git Server - fll/commit
Update: Provide fallback should the locks on exit fail to catch and update function...
authorKevin Day <Kevin@kevux.org>
Wed, 10 Jul 2024 02:30:32 +0000 (21:30 -0500)
committerKevin Day <Kevin@kevux.org>
Wed, 10 Jul 2024 02:32:44 +0000 (21:32 -0500)
commitfcf47068f9563d9d83f7ffbae518eb6e4eae4c0e
tree11be89bcd4a7b47e877a30d687f5d90da40042f9
parent49a3d41d1c17734b0a8299b356f1e299386f4a42
Update: Provide fallback should the locks on exit fail to catch and update function using pointer.

The previous commit 49a3d41d1c17734b0a8299b356f1e299386f4a42 removed the forced fallback to avoid potential race conditions.
The reason for having that fallback is to ensure that the exit process is guaranteed and not potentially blocked by a lock.

Provide an alternative that makes several attempts to properly lock on exit.
Only when those extra attempts fails should the failsafe/fallback be used.

Update controller_thread_process_cancel() to have the global data as a pointer.
level_3/controller/c/common/private-thread.h
level_3/controller/c/entry/private-entry.c
level_3/controller/c/thread/private-thread.c
level_3/controller/c/thread/private-thread_entry.c
level_3/controller/c/thread/private-thread_process.c
level_3/controller/c/thread/private-thread_process.h
level_3/controller/c/thread/private-thread_signal.c