summaryrefslogtreecommitdiffstats
path: root/test/thread_id.c
Commit message (Collapse)AuthorAgeFilesLines
* Source formattedAllen Byrne2020-10-011-31/+25
|
* Windows thread-safe fixes from developDana Robinson2020-08-141-2/+2
|
* Whitespace updatesAllen Byrne2020-05-131-1/+1
|
* Complete the comment on thread_main(), explaining why the barrier is used.David Young2020-05-111-1/+9
|
* The first implementation seemed to allow for the possibility that a threadDavid Young2020-05-111-1/+8
| | | | | | | | | could block at the barrier, wake and exit the barrier, re-acquire the barrier lock and increase `nentered` before the other blocked threads woke and checked `nentered % count == 0`. Then the other blocked threads would check `nentered % count == 0` and, finding it false, go back to sleep in the barrier. This new implementation waits for a looser condition to obtain so that threads don't go back to sleep in the barrier.
* Test the right condition for the EBUSY return in pthread_barrier_destroy().David Young2020-05-111-1/+1
|
* s/exit_failure/EXIT_FAILURE/gDavid Young2020-05-111-2/+2
|
* Implement pthread_barrier(3) for Darwin using a counter, condition variable,David Young2020-05-111-0/+123
| | | | and mutex. Untested.
* Use HD prefix.David Young2020-05-111-13/+13
|
* Provide local copies of err(3)- and errx(3)-alike functionsDavid Young2020-05-111-7/+37
| | | | for Visual Studio compatibility.
* Oops, the test has to return success in the unimplemented case.David Young2020-05-111-3/+2
|
* src/H5Eint.c: #include H5TSprivate.h for H5TS_thread_id() definitions.David Young2020-05-111-2/+2
| | | | test/thread_id.c: move threads_failure() inside #ifdefs.
* Change thread IDs to uint64_t from unsigned long, per Quincey's suggestion.David Young2020-05-061-5/+6
| | | | | Fix a typo in the H5TS_thread_init() comment and reword some ID properties.
* Replace pthread_self_ulong() with H5TS_thread_id(). The POSIX ThreadsDavid Young2020-05-061-0/+162
implementation ought to be portable to any system that has POSIX Threads. On Windows, I use the same API call as before.