From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 412 invoked by alias); 8 Oct 2013 16:31:29 -0000 Mailing-List: contact cygwin-developers-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com Received: (qmail 344 invoked by uid 89); 8 Oct 2013 16:31:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-vc0-f173.google.com Received: from mail-vc0-f173.google.com (HELO mail-vc0-f173.google.com) (209.85.220.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 08 Oct 2013 16:31:26 +0000 Received: by mail-vc0-f173.google.com with SMTP id if17so3809498vcb.18 for ; Tue, 08 Oct 2013 09:31:24 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.220.16.73 with SMTP id n9mr1687830vca.24.1381249884088; Tue, 08 Oct 2013 09:31:24 -0700 (PDT) Received: by 10.220.214.74 with HTTP; Tue, 8 Oct 2013 09:31:24 -0700 (PDT) Date: Tue, 08 Oct 2013 16:31:00 -0000 Message-ID: Subject: pthread_barrier From: Reini Urban To: cygwin-developers@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00001.txt.bz2 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. -- Reini Urban http://cpanel.net/ http://www.perl-compiler.org/