Dana Robinson
b806f3e9ac
Tweak to hide unused threadsafe callback in non-threadsafe builds
2020-08-13 10:13:18 -07:00
Quincey Koziol
9e5dbf6906
Trim trailing whitespace
2020-04-20 18:12:00 -05:00
David Young
803d805c74
Complete the comment on thread_main(), explaining why the barrier is used.
2020-02-27 16:14:44 -06:00
David Young
4be589813a
The first implementation seemed to allow for the possibility that a thread
...
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.
2020-02-27 11:27:45 -06:00
David Young
11d22f3ea5
Test the right condition for the EBUSY return in pthread_barrier_destroy().
2020-02-27 10:17:24 -06:00
David Young
802bf2dc1e
s/exit_failure/EXIT_FAILURE/g
2020-02-27 10:16:49 -06:00
David Young
b87d9cb50e
Implement pthread_barrier(3) for Darwin using a counter, condition variable,
...
and mutex. Untested.
2020-02-26 20:38:57 -06:00
David Young
b4697f9692
Use HD prefix.
2020-02-12 14:07:47 -06:00
David Young
c7ad81b0ea
Provide local copies of err(3)- and errx(3)-alike functions
...
for Visual Studio compatibility.
2020-02-07 14:45:08 -06:00
David Young
8f77878953
Oops, the test has to return success in the unimplemented case.
2020-02-06 10:43:37 -06:00
David Young
cefacee21b
src/H5Eint.c: #include H5TSprivate.h for H5TS_thread_id() definitions.
...
test/thread_id.c: move threads_failure() inside #ifdefs.
2020-02-03 16:33:28 -06:00
David Young
a20b68b257
Change thread IDs to uint64_t from unsigned long, per Quincey's suggestion.
...
Fix a typo in the H5TS_thread_init() comment and reword some ID
properties.
2020-02-03 16:23:06 -06:00
David Young
986c7451a0
Replace pthread_self_ulong() with H5TS_thread_id(). The POSIX Threads
...
implementation ought to be portable to any system that has POSIX
Threads. On Windows, I use the same API call as before.
2020-02-03 11:59:14 -06:00