From: Kevin Day Date: Tue, 29 Jul 2025 12:28:00 +0000 (-0500) Subject: Regression: Add missing timeout defines. X-Git-Tag: 0.7.3~44 X-Git-Url: https://www.git.kevux.org/?a=commitdiff_plain;h=ba0c5eb2d13c91c1e31615124c419c5ef6dac933;p=controller Regression: Add missing timeout defines. I forgot to include this change when making this commit a6c48608f4bbec94d3c5939d165ce8cee6eab53b. --- diff --git a/sources/c/program/controller/main/common/define/thread.h b/sources/c/program/controller/main/common/define/thread.h index 28eca8d..d8ce827 100644 --- a/sources/c/program/controller/main/common/define/thread.h +++ b/sources/c/program/controller/main/common/define/thread.h @@ -41,6 +41,8 @@ extern "C" { * Thread related timeout defines. * * controller_thread_timeout_*_d: + * - cancel_lock_nanoseconds: The nanoseconds to wait before the cancel lock times out. + * - cancel_lock_seconds: The seconds to wait before the cancel lock times out. * - exit: The number of milliseconds to wait before exit times out (before a terminate/kill signal is sent). * - exit_disable_force_nanoseconds: The nanoseconds to wait between each attempt to lock and set disable state. * - exit_disable_force_seconds: The seconds to wait between each attempt to lock and set disable state. @@ -68,6 +70,9 @@ extern "C" { * - wait_4_seconds: The seconds to wait in set 4 timeouts while waiting for an Instance. */ #ifndef _di_controller_thread_timeout_d_ + #define controller_thread_timeout_cancel_nanoseconds_d 100000000 // 0.1 seconds in nanoseconds. + #define controller_thread_timeout_cancel_seconds_d 0 + #define controller_thread_timeout_exit_d 500 // 0.5 seconds in milliseconds. #define controller_thread_timeout_exit_disable_force_nanoseconds_d 10000000 // 0.01 seconds in nanoseconds. #define controller_thread_timeout_exit_disable_force_seconds_d 0