This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: [tpfaff@cygwin.com: src/winsup/cygwin ChangeLog thread.cc thread.h]
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: cygwin-developers at cygwin dot com
- Date: Tue, 2 Dec 2003 09:30:52 +0100
- Subject: Re: [tpfaff@cygwin.com: src/winsup/cygwin ChangeLog thread.cc thread.h]
- References: <20031201230247.GA1640@cygbert.vinschen.de> <3FCC3F81.9000907@gmx.net>
- Reply-to: cygwin-developers at cygwin dot com
On Tue, Dec 02, 2003 at 08:30:09AM +0100, Thomas Pfaff wrote:
> Corinna Vinschen wrote:
> >----- Forwarded message from tpfaff@cygwin.com -----
> >>Log message:
> >> * thread.cc (pthread_rwlock::add_reader): Remove mx parameter for
> >> List_insert call.
> >> (pthread::prepare): Ensure race safeness when adding function
> >> pointers to atfork lists by using List_insert.
> >> * thread.h (List_insert): Use InterlockedCompareExchangePointer to
> >> ensure race safeness without using a mutex.
> >> (List_remove): Use InterlockedCompareExchangePointer to
> >> ensure race safeness with List_insert.
> >> (List::insert): Remove mx parameter for List_insert call.
> >----- End forwarded message -----
> >
> >Doesn't this patch result in not being able to run Cygwin on Win 95
> >anymore? InterlockedCompareExchangePointer is only available since
> >98 according to MSDN. Or did we leave 95 already behind somewhere
> >on the way?
>
> Not at all.
>
> The whole interlocked stuff is inline assembled in winbase.h .
Uh, interesting. Thanks, I didn't know that.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.