pthread_create leaves valid mutex pointers on the stack
Samuel Thibault
samuel.thibault@ens-lyon.org
Thu Mar 16 17:11:00 GMT 2006
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/
More information about the Cygwin
mailing list