mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 00:49:45 +01:00
Merge pull request #21030 from JulianHolzwarth/pr/software/test/cond
tests/core/cond_order/: calling cond signal and broadcast without waiting threads
This commit is contained in:
commit
b69d060e35
@ -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