Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Whitespace updates | Allen Byrne | 2020-05-13 | 1 | -1/+1 |
| | |||||
* | Complete the comment on thread_main(), explaining why the barrier is used. | David Young | 2020-05-11 | 1 | -1/+9 |
| | |||||
* | The first implementation seemed to allow for the possibility that a thread | David Young | 2020-05-11 | 1 | -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 Young | 2020-05-11 | 1 | -1/+1 |
| | |||||
* | s/exit_failure/EXIT_FAILURE/g | David Young | 2020-05-11 | 1 | -2/+2 |
| | |||||
* | Implement pthread_barrier(3) for Darwin using a counter, condition variable, | David Young | 2020-05-11 | 1 | -0/+123 |
| | | | | and mutex. Untested. | ||||
* | Use HD prefix. | David Young | 2020-05-11 | 1 | -13/+13 |
| | |||||
* | Provide local copies of err(3)- and errx(3)-alike functions | David Young | 2020-05-11 | 1 | -7/+37 |
| | | | | for Visual Studio compatibility. | ||||
* | Oops, the test has to return success in the unimplemented case. | David Young | 2020-05-11 | 1 | -3/+2 |
| | |||||
* | src/H5Eint.c: #include H5TSprivate.h for H5TS_thread_id() definitions. | David Young | 2020-05-11 | 1 | -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 Young | 2020-05-06 | 1 | -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 Threads | David Young | 2020-05-06 | 1 | -0/+162 |
implementation ought to be portable to any system that has POSIX Threads. On Windows, I use the same API call as before. |