mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +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);
|
||||
cond_init(&testcond);
|
||||
|
||||
/* Test if condition signal and broadcast works when no thread is waiting */
|
||||
cond_signal(&testcond);
|
||||
cond_broadcast(&testcond);
|
||||
|
||||
/* create threads */
|
||||
for (unsigned i = 0; i < THREAD_NUMOF; i++) {
|
||||
thread_create(stacks[i], sizeof(stacks[i]), prios[i], 0,
|
||||
|
Loading…
Reference in New Issue
Block a user