aboutsummaryrefslogtreecommitdiff
path: root/src/tests/test.c
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-14 19:47:50 -0700
committerChristian Cunningham <cc@localhost>2022-02-14 19:47:50 -0700
commit5827115cd4a993414dd41bb7d3af699408f875a8 (patch)
tree769757ce9e7b260c0ed5a052e99ae21463190f98 /src/tests/test.c
parent30956118f25ae50e8427c75bb1776d9580a98cf7 (diff)
Fixed priority inversion protection
Diffstat (limited to 'src/tests/test.c')
-rw-r--r--src/tests/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test.c b/src/tests/test.c
index d828163..bb1bf31 100644
--- a/src/tests/test.c
+++ b/src/tests/test.c
@@ -46,8 +46,7 @@ void ctest1(void)
uart_string("1 Started\n");
uart_string("1 Locking\n");
lock(&testm);
- add_thread(ctest3, 0, 3);
- add_thread(ctest2, 0, 2);
+ add_thread(ctest3, 0, 2);
uart_string("1 Unlocking\n");
unlock(&testm);
uart_string("1 Finished\n");
@@ -67,6 +66,7 @@ void ctest2(void)
void ctest3(void)
{
uart_string("3 Started\n");
+ add_thread(ctest2, 0, 1);
uart_string("3 Finished\n");
}