This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Thread related crash
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 08 Oct 2009 16:19:29 +0100
- Subject: Re: Thread related crash
- References: <4ACDCA99.9090400@cwilson.fastmail.fm>
Charles Wilson wrote:
> I have an idea why this is happening: I'm managing these threads
> manually using the windows API calls: CreateThread, WaitForSingleObject,
> SetEvent, etc. They are NOT actually started by cygwin's thread
> launching facilities (e.g. pthread).
Then you are doomed. Cygwin's pthread layer will believe that every single
foreign thread is in fact the same thread, and they will all crash happily
through each other's mutexes. Fun'n'games result. (This is the same kind of
problem that the half-ming-half-cyg gnat implementation suffers.)
cheers,
DaveK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple