This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthread_create leaves valid mutex pointers on the stack


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]