mdbx-test: add darwin-pthread-barrier.

Import from https://github.com/ademakov/DarwinPthreadBarrier with minor changes.
This commit is contained in:
Leonid Yuriev
2019-08-13 01:59:06 +03:00
parent 91088af935
commit 054a88c502
4 changed files with 222 additions and 0 deletions

8
test/darwin/README.md Normal file
View File

@@ -0,0 +1,8 @@
# DarwinPthreadBarrier
A pthread_barrier_t implementation for Mac OS/X
There is no pthread_barrier_t in Mac OS/X pthreads. This project fixes
this omission by providing a simple-minded barrier implementation based
on a pair of pthread_mutex_t and pthread_cond_t.