summaryrefslogtreecommitdiff
path: root/common/src/tx_thread_sleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/tx_thread_sleep.c')
-rw-r--r--common/src/tx_thread_sleep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/src/tx_thread_sleep.c b/common/src/tx_thread_sleep.c
index fd986a0b..9e3a0afd 100644
--- a/common/src/tx_thread_sleep.c
+++ b/common/src/tx_thread_sleep.c
@@ -9,6 +9,7 @@
* SPDX-License-Identifier: MIT
**************************************************************************/
+// Portions of this file were generated with AI assistance.
/**************************************************************************/
/**************************************************************************/
@@ -155,6 +156,9 @@ TX_THREAD *thread_ptr;
#ifdef TX_NOT_INTERRUPTABLE
+ /* Initialize the status to successful. */
+ thread_ptr -> tx_thread_suspend_status = TX_SUCCESS;
+
/* Call actual non-interruptable thread suspension routine. */
_tx_thread_system_ni_suspend(thread_ptr, timer_ticks);