1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 00:29:46 +01:00

Merge pull request #20989 from mguetschow/tests-thread-priority

tests/core/thread_msg: lower thread priority for consistent output order
This commit is contained in:
Marian Buschsieweke 2024-11-26 15:15:04 +00:00 committed by GitHub
commit d0e4f4d279
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,14 +86,11 @@ void *thread3(void *arg)
int main(void)
{
p_main = thread_getpid();
p1 = thread_create(t1_stack, sizeof(t1_stack), THREAD_PRIORITY_MAIN - 1,
THREAD_CREATE_WOUT_YIELD,
p1 = thread_create(t1_stack, sizeof(t1_stack), THREAD_PRIORITY_MAIN + 1, 0,
thread1, NULL, "nr1");
p2 = thread_create(t2_stack, sizeof(t2_stack), THREAD_PRIORITY_MAIN - 1,
THREAD_CREATE_WOUT_YIELD,
p2 = thread_create(t2_stack, sizeof(t2_stack), THREAD_PRIORITY_MAIN + 1, 0,
thread2, NULL, "nr2");
p3 = thread_create(t3_stack, sizeof(t3_stack), THREAD_PRIORITY_MAIN - 1,
THREAD_CREATE_WOUT_YIELD,
p3 = thread_create(t3_stack, sizeof(t3_stack), THREAD_PRIORITY_MAIN + 1, 0,
thread3, NULL, "nr3");
puts("THREADS CREATED\n");