mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/pthread_barrier: small improvements
This commit is contained in:
parent
7c446176a4
commit
42afbb5fae
@ -56,7 +56,7 @@ int main(void)
|
|||||||
{
|
{
|
||||||
random_init(RAND_SEED);
|
random_init(RAND_SEED);
|
||||||
|
|
||||||
puts("Start.\n");
|
puts("START\n");
|
||||||
pthread_barrier_init(&barrier, NULL, NUM_CHILDREN);
|
pthread_barrier_init(&barrier, NULL, NUM_CHILDREN);
|
||||||
|
|
||||||
pthread_t children[NUM_CHILDREN];
|
pthread_t children[NUM_CHILDREN];
|
||||||
@ -70,6 +70,7 @@ int main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
pthread_barrier_destroy(&barrier);
|
pthread_barrier_destroy(&barrier);
|
||||||
puts("\nDone.");
|
puts("");
|
||||||
|
puts("SUCCESS");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user