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/