]> Kevux Git Server - controller/commitdiff
Regression: Add missing timeout defines.
authorKevin Day <Kevin@kevux.org>
Tue, 29 Jul 2025 12:28:00 +0000 (07:28 -0500)
committerKevin Day <Kevin@kevux.org>
Tue, 29 Jul 2025 12:28:00 +0000 (07:28 -0500)
I forgot to include this change when making this commit a6c48608f4bbec94d3c5939d165ce8cee6eab53b.

sources/c/program/controller/main/common/define/thread.h

index 28eca8df323ba4be969d6a684ec37f3a22377d35..d8ce82797a53894b233fd890f5ae0c667a2ae000 100644 (file)
@@ -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