summaryrefslogtreecommitdiff
path: root/test/smp/regression/threadx_smp_time_slice_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/smp/regression/threadx_smp_time_slice_test.c')
-rw-r--r--test/smp/regression/threadx_smp_time_slice_test.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/test/smp/regression/threadx_smp_time_slice_test.c b/test/smp/regression/threadx_smp_time_slice_test.c
index fe97590a..370f5e37 100644
--- a/test/smp/regression/threadx_smp_time_slice_test.c
+++ b/test/smp/regression/threadx_smp_time_slice_test.c
@@ -1,5 +1,18 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Define the ThreadX SMP time-slice test. */
+// Some portions generated by Codex (gpt 5.4).
+
#include <stdio.h>
#include "tx_api.h"
@@ -243,7 +256,7 @@ UINT status;
status += tx_thread_resume(&thread_31g);
status += tx_thread_resume(&thread_31h);
- /* Now sleep for 20 ticks to let see if all the threads execute. */
+ /* Sleep long enough to see if all the threads execute. */
tx_thread_sleep(20);
/* Now check and make sure all the threads ran. */
@@ -358,4 +371,3 @@ static void thread_31h_entry(ULONG thread_input)
thread_31h_counter++;
}
}
-