mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:52:44 +01:00
tests/cond_order/main.c: testing without waiting threads
This commit is contained in:
parent
77c4a24bcf
commit
1ed2f36cd5
@ -63,6 +63,10 @@ int main(void)
|
|||||||
mutex_init(&testlock);
|
mutex_init(&testlock);
|
||||||
cond_init(&testcond);
|
cond_init(&testcond);
|
||||||
|
|
||||||
|
/* Test if condition signal and broadcast works when no thread is waiting */
|
||||||
|
cond_signal(&testcond);
|
||||||
|
cond_broadcast(&testcond);
|
||||||
|
|
||||||
/* create threads */
|
/* create threads */
|
||||||
for (unsigned i = 0; i < THREAD_NUMOF; i++) {
|
for (unsigned i = 0; i < THREAD_NUMOF; i++) {
|
||||||
thread_create(stacks[i], sizeof(stacks[i]), prios[i], 0,
|
thread_create(stacks[i], sizeof(stacks[i]), prios[i], 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user