This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: pthread_create leaves valid mutex pointers on the stack
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: cygwin at cygwin dot com
- Date: Thu, 16 Mar 2006 18:11:39 +0100
- Subject: Re: pthread_create leaves valid mutex pointers on the stack
- References: <17433.39495.950903.287320@metro-north.cs.columbia.edu>
Hi,
Jonathan Lennox, le Thu 16 Mar 2006 12:03:03 -0500, a écrit :
Content-Description: message body text
> In general, the idea of verifying objects on their init functions seems
> dubious to me -- how can you tell initialized objects from random stack or
> heap garbage?
Posix says:
Attempting to initialize an already initialized mutex results in undefined
behavior.
But the behavior you desribe is weird indeed :)
Regards,
Samuel
--
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/