summaryrefslogtreecommitdiffstats
path: root/test/thread_id.c
Commit message (Collapse)AuthorAgeFilesLines
* Update URL in source file Copyright headers for web copy of COPYINGLarry Knox2021-02-201-1/+1
| | | | file - src and test directories.
* 1 12 Whitespace changes after clang-format run (#288)Allen Byrne2021-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | | * OESS-98 fix tools test for plugins * sync fork * Merge of changes from dev * Move problem option to bottom of the list until fixed * HDFFV-11106 - fix parsing optional args * HDFFV-11106 add note * grammer fix * Whitespace after clang formatting * Undo format version 11 changes * Update check to working version
* Basic alignment with async branch (#115) (#137)Quincey Koziol2020-11-301-1/+1
| | | | | | | * Basic alignment with async branch - trivial changes to reduce clutter in overall diff. * Update minor error code to reflect change within library * Update the error output to match library
* Manual sync with develop (#95)Dana Robinson2020-11-171-7/+7
| | | | Brings all features from develop. Note that RELEASE.txt has not been updated (will be done in a future PR).
* 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.