This is the mail archive of the
pthreads-win32@sourceware.org
mailing list for the pthreas-win32 project.
problem in pthread.h
- From: Romano Paolo Tenca <rotenca at telvia dot it>
- To: Pthreads-Win32 list <pthreads-win32 at sources dot redhat dot com>
- Date: Mon, 05 Jun 2006 20:05:45 +0200
- Subject: problem in pthread.h
In pthread.h 2.7.0 line 762 i find:
#define pthread_cleanup_push( _rout, _arg ) \
{ \
ptw32_cleanup_t _cleanup; \
\
ptw32_push_cleanup( &_cleanup, (ptw32_cleanup_callback_t)
(_rout), (_arg) ); \
#define pthread_cleanup_pop( _execute ) \
(void) ptw32_pop_cleanup( _execute ); \
}
It seems to me that it must be:
#define pthread_cleanup_push( _rout, _arg ) \
{ \
ptw32_cleanup_t _cleanup; \
ptw32_push_cleanup( &_cleanup, (ptw32_cleanup_callback_t)
(_rout), (_arg) ); \
}
#define pthread_cleanup_pop( _execute ) \
(void) ptw32_pop_cleanup( _execute );
--
Romano Paolo Tenca