1
0
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:
Marian Buschsieweke 2024-11-26 05:50:38 +00:00 committed by GitHub
commit b69d060e35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,