Reini Urban
2013-10-08 16:31:24 UTC
In http://cygwin.com/ml/cygwin/2011-07/msg00406.html
Corinna hinted that pthread_barrier is a bit hard to implement.
I found 2 nice non-GPL implementations, but I'm not sure about the license.
There's one in libuv (which I need it for), which is
https://github.com/joyent/libuv/blob/master/src/unix/pthread-fixes.c
provided by Sony and Google (for Android), which seems to be MIT licensed.
And there's http://www.cs.berkeley.edu/~bvs/cs267_hw2/particles/pthread_barrier.c
without any license, looks it's some berkeley course material.
Doesn't look too hard to implement.
Should I ask the berkeley guy Brian Van Straalen
or is the libuv version good enough for us?
The GPL pthreads-win32 version looks awful in comparison.
Corinna hinted that pthread_barrier is a bit hard to implement.
I found 2 nice non-GPL implementations, but I'm not sure about the license.
There's one in libuv (which I need it for), which is
https://github.com/joyent/libuv/blob/master/src/unix/pthread-fixes.c
provided by Sony and Google (for Android), which seems to be MIT licensed.
And there's http://www.cs.berkeley.edu/~bvs/cs267_hw2/particles/pthread_barrier.c
without any license, looks it's some berkeley course material.
Doesn't look too hard to implement.
Should I ask the berkeley guy Brian Van Straalen
or is the libuv version good enough for us?
The GPL pthreads-win32 version looks awful in comparison.
--
Reini Urban
http://cpanel.net/ http://www.perl-compiler.org/
Reini Urban
http://cpanel.net/ http://www.perl-compiler.org/