delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/02/13:40:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <9ae345c005060210407dd4ff09@mail.gmail.com>
Date: Thu, 2 Jun 2005 20:40:15 +0300
From: Yuval Turgeman <yuvalt AT gmail DOT com>
Reply-To: Yuval Turgeman <yuvalt AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: pthread.h small problem
Mime-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j52Hec41023090

Hi,
The pthread_cleanup_push and pthread_cleanup_pop macros seems to be
broken in the CVS (misplaced brackets).  I hope I'm not posting to the
wrong list, but here's the patch...

--- ./winsup/cygwin/include/pthread.h.orig      2005-06-02
20:34:00.000000000 +0300
+++ ./winsup/cygwin/include/pthread.h   2005-06-02 20:34:59.000000000 +0300
@@ -118,8 +118,9 @@
 
 #define pthread_cleanup_push(_fn, _arg) { __pthread_cleanup_handler
__cleanup_handler = \
                                         { _fn, _arg, NULL }; \
-                                        _pthread_cleanup_push(
&__cleanup_handler );
-#define pthread_cleanup_pop(_execute) _pthread_cleanup_pop( _execute ); }
+                                        _pthread_cleanup_push(
&__cleanup_handler ); }
+
+#define pthread_cleanup_pop(_execute) _pthread_cleanup_pop( _execute );
 
 /* Condition variables */
 int pthread_cond_broadcast (pthread_cond_t *);


-- 
Yuval Turgeman

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019