This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


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

Re: Alan needs a DLL guru (was Re: [PATCH] Re: pthread).


----- Original Message -----
From: "Alan Hourihane" <alanh@fairlite.demon.co.uk>
To: "Robert Collins" <robert.collins@itdomain.com.au>
Cc: <cygwin-xfree@sources.redhat.com>
Sent: Monday, May 07, 2001 1:56 AM
Subject: Re: Alan needs a DLL guru (was Re: [PATCH] Re: pthread).


> On Sun, May 06, 2001 at 04:27:06PM +0100, Alan Hourihane wrote:
> > I've got an OpenGL thread program which crashes in another function
pointer
> > place. I'll eventually test this and fix it's mutex too, but it'd be
good
> > to get a better solution than what I've currently got.
> >
> In fact,
>
> I've just found that xc/programs/ico has a multithreaded option.
>
> It fires up no problems with -threads 1. So I know the function
pointers
> are now working.
>
> But, sadly when starting two threads there are problems. This is more
likely
> to be with the pthread support though. It's looking like the first
thread
> is grabbing events from the second. Possibly some race condition.
Although it's
> complete speculation at the moment, just the way it looks on screen.
It does
> eventually crash due to the other thread grabbing one of the others
event.

Is it all single-process threading?
Are they mutex's or condition+mutex's in use?
When you say event, I'm not sure what soirt of event - win32 event/X
event...

Rob

> Rob - If you start 'ico -threads 2'  you'll have a good test case for
when
> I've cleaned up the mutex's.

Do I need to rebuild it? As mentioned I don't reall yhave 12 hours
sitting around idle at the moment :[

> Alan.
>


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