Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Reply-To: Yuval Turgeman To: cygwin AT cygwin DOT com Subject: pthread.h small problem Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline X-IsSubscribed: yes Content-Transfer-Encoding: 8bit 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/