summaryrefslogtreecommitdiff
path: root/test/smp/regression/threadx_semaphore_prioritize.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_semaphore_prioritize.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_semaphore_prioritize.c')
-rw-r--r--test/smp/regression/threadx_semaphore_prioritize.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/test/smp/regression/threadx_semaphore_prioritize.c b/test/smp/regression/threadx_semaphore_prioritize.c
index 79622667..6bee4656 100644
--- a/test/smp/regression/threadx_semaphore_prioritize.c
+++ b/test/smp/regression/threadx_semaphore_prioritize.c
@@ -75,12 +75,12 @@ static void test_isr(void)
}
else
{
-
+
/* Abort the wait of thread 5. */
tx_thread_wait_abort(&thread_5);
/* End the ISR processing. */
- test_status = 2;
+ test_status = 2;
test_isr_dispatch = TX_NULL;
}
}
@@ -113,8 +113,8 @@ CHAR *pointer;
/* 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,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_0, "thread 0", thread_0_entry, 1,
+ pointer, TEST_STACK_SIZE_PRINTF,
17, 17, 100, TX_AUTO_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
@@ -126,8 +126,8 @@ CHAR *pointer;
test_control_return(1);
}
- status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1,
+ pointer, TEST_STACK_SIZE_PRINTF,
16, 16, 100, TX_DONT_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
@@ -139,8 +139,8 @@ CHAR *pointer;
test_control_return(1);
}
- status = tx_thread_create(&thread_2, "thread 2", thread_2_entry, 2,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_2, "thread 2", thread_2_entry, 2,
+ pointer, TEST_STACK_SIZE_PRINTF,
15, 15, 100, TX_DONT_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
@@ -152,8 +152,8 @@ CHAR *pointer;
test_control_return(1);
}
- status = tx_thread_create(&thread_3, "thread 3", thread_3_entry, 3,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_3, "thread 3", thread_3_entry, 3,
+ pointer, TEST_STACK_SIZE_PRINTF,
3, 3, 100, TX_DONT_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
@@ -165,8 +165,8 @@ CHAR *pointer;
test_control_return(1);
}
- status = tx_thread_create(&thread_4, "thread 4", thread_4_entry, 4,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_4, "thread 4", thread_4_entry, 4,
+ pointer, TEST_STACK_SIZE_PRINTF,
4, 4, 100, TX_DONT_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
@@ -178,8 +178,8 @@ CHAR *pointer;
test_control_return(1);
}
- status = tx_thread_create(&thread_5, "thread 5", thread_5_entry, 5,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_5, "thread 5", thread_5_entry, 5,
+ pointer, TEST_STACK_SIZE_PRINTF,
5, 5, 100, TX_DONT_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
@@ -191,8 +191,8 @@ CHAR *pointer;
test_control_return(1);
}
- status = tx_thread_create(&thread_6, "thread 6", thread_6_entry, 6,
- pointer, TEST_STACK_SIZE_PRINTF,
+ status = tx_thread_create(&thread_6, "thread 6", thread_6_entry, 6,
+ pointer, TEST_STACK_SIZE_PRINTF,
6, 6, 100, TX_DONT_START);
pointer = pointer + TEST_STACK_SIZE_PRINTF;
@@ -206,7 +206,7 @@ CHAR *pointer;
/* Create the semaphore with no instances. */
status = tx_semaphore_create(&semaphore_0, "semaphore 0", 0);
-
+
/* Check for status. */
if (status != TX_SUCCESS)
{
@@ -217,7 +217,7 @@ CHAR *pointer;
/* Setup the semaphore notify callback. */
status = tx_semaphore_put_notify(&semaphore_0, put_notify);
-
+
#ifndef TX_DISABLE_NOTIFY_CALLBACKS
/* Check for status. */
@@ -334,7 +334,7 @@ UINT status;
printf("ERROR #15a\n");
test_control_return(1);
}
-
+
/* At this point we are going to get more than 2 threads suspended. */
tx_thread_resume(&thread_1);
tx_thread_resume(&thread_2);
@@ -345,7 +345,7 @@ UINT status;
/* Prioritize the semaphore suspension list. */
status = tx_semaphore_prioritize(&semaphore_0);
-
+
/* Check status and make sure thread 3 is now at the front of the suspension list. */
if ((status != TX_SUCCESS) || (semaphore_0.tx_semaphore_suspension_list != &thread_3))
{
@@ -354,10 +354,10 @@ UINT status;
printf("ERROR #16\n");
test_control_return(1);
}
-
+
/* Now loop to test the interrupt of the prioritize loop logic. */
test_status = 1;
- test_isr_dispatch = test_isr;
+ test_isr_dispatch = test_isr;
do
{