123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #include "test.h"
- static pthread_barrier_t barrier = NULL;
- int pthread_test_barrier1()
- {
- assert(barrier == NULL);
- assert(pthread_barrier_init(&barrier, NULL, 1) == 0);
- assert(barrier != NULL);
- assert(pthread_barrier_destroy(&barrier) == 0);
- assert(barrier == NULL);
- return 0;
- }
|