summaryrefslogtreecommitdiffstats
path: root/test/thread_id.c
Commit message (Collapse)AuthorAgeFilesLines
* Update license url (#332)Larry Knox2021-02-171-1/+1
| | | | | | * Modify temporary rpath for testing in java example scripts. * Update URL in source file Copyright headers for web copy of COPYING file - src and test directories.
* develop revert source to clang-format version 11 (#293)Allen Byrne2021-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * OESS-98 convert plugin option to FetchContent, add tests * Fixes for pkcfg files because of plugin option * OESS-98 fix tools test for plugins * Keep doxygen comments under 100 chars long - format hint * Whitespace * HDFFV-11144 - Reclassify CMake messages * HDFFV-11099/11100 added help text * Reworked switch statement to compare string instead * Fix typo * Update CDash mode * Correct name of threadsafe * Correct option name * Undo accidental commit * Note LLVM 10 to 11 format default changes * Update format plugin * Undo clang-format version 11 changes * One more correction
* Basic alignment with async branch (#115)Quincey Koziol2020-11-231-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
* HD prefix updates in src/ and test/Dana Robinson2020-10-241-7/+7
| | | | | | | Adds missing HD prefixes to API calls in src and test. Adds some extra processing to bin/checkposix to keep the noise levels down when running the script (not comprehensive).
* Clang-format of source filesAllen Byrne2020-09-301-31/+25
|
* Tweak to hide unused threadsafe callback in non-threadsafe buildsDana Robinson2020-08-131-2/+2
|
* Trim trailing whitespaceQuincey Koziol2020-04-201-1/+1
|
* Complete the comment on thread_main(), explaining why the barrier is used.David Young2020-02-271-1/+9
|
* The first implementation seemed to allow for the possibility that a threadDavid Young2020-02-271-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-02-271-1/+1
|
* s/exit_failure/EXIT_FAILURE/gDavid Young2020-02-271-2/+2
|
* Implement pthread_barrier(3) for Darwin using a counter, condition variable,David Young2020-02-271-0/+123
| | | | and mutex. Untested.
* Use HD prefix.David Young2020-02-121-13/+13
|
* Provide local copies of err(3)- and errx(3)-alike functionsDavid Young2020-02-071-7/+37
| | | | for Visual Studio compatibility.
* Oops, the test has to return success in the unimplemented case.David Young2020-02-061-3/+2
|
* src/H5Eint.c: #include H5TSprivate.h for H5TS_thread_id() definitions.David Young2020-02-031-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-02-031-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-02-031-0/+162
implementation ought to be portable to any system that has POSIX Threads. On Windows, I use the same API call as before.