summaryrefslogtreecommitdiff
path: root/test/smp/regression/threadx_thread_basic_time_slice_test.c
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2026-03-06 19:27:49 +0100
committerGitHub <[email protected]>2026-03-06 19:27:49 +0100
commit3726d7906b4808bfec7855fc088e073199df9120 (patch)
tree8789bfd03d1d49e1967e80d04aa4ff606fda43eb /test/smp/regression/threadx_thread_basic_time_slice_test.c
parent4b6e8100d932a3a67b34c6eb17f84f3bffb9e2ae (diff)
parentc3259a216026372e3833dd8996a68f77e8595fbd (diff)
Merge pull request #510 from eclipse-threadx/devv6.5.0.202601_rel
Merge changes ahead of the v6.5.0.202601 release
Diffstat (limited to 'test/smp/regression/threadx_thread_basic_time_slice_test.c')
-rw-r--r--test/smp/regression/threadx_thread_basic_time_slice_test.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/smp/regression/threadx_thread_basic_time_slice_test.c b/test/smp/regression/threadx_thread_basic_time_slice_test.c
index 9a4f4373..bb848b11 100644
--- a/test/smp/regression/threadx_thread_basic_time_slice_test.c
+++ b/test/smp/regression/threadx_thread_basic_time_slice_test.c
@@ -1,4 +1,4 @@
-/* This test is designed to see if a thread can be created with a time-slice.
+/* This test is designed to see if a thread can be created with a time-slice.
No time-slice occurs, only the processing to check for time-slicing. */
#include <stdio.h>
@@ -32,18 +32,18 @@ void threadx_thread_basic_time_slice_application_define(void *first_unused_me
UINT status;
UCHAR *memory;
-
+
memory = (UCHAR *) first_unused_memory;
/* Put system definition stuff in here, e.g. thread creates and other assorted
create information. */
- status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1,
- memory, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1,
+ memory, TEST_STACK_SIZE_PRINTF,
16, 16, 1, TX_AUTO_START);
memory = memory + TEST_STACK_SIZE_PRINTF;
- status += tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1,
- memory, TEST_STACK_SIZE_PRINTF,
+ status += tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1,
+ memory, TEST_STACK_SIZE_PRINTF,
16, 16, 1, TX_DONT_START);
status += tx_thread_smp_core_exclude(&thread_1, 0xF);
status += tx_thread_resume(&thread_1);
@@ -87,7 +87,7 @@ ULONG target_time;
/* Determine if thread 1 executed. */
if (thread_1_counter != 0)
{
-
+
/* Error, thread 1 has all cores excluded so it should never run. */
printf("ERROR #2\n");
test_control_return(0);
@@ -112,6 +112,6 @@ static void thread_1_entry(ULONG thread_input)
{
/* Increment counter. */
- thread_1_counter++;
+ thread_1_counter++;
}
}