[tpfaff@cygwin.com: src/winsup/cygwin ChangeLog thread.cc thread.h]

Corinna Vinschen vinschen@redhat.com
Tue Dec 2 08:30:00 GMT 2003


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.



More information about the Cygwin-developers mailing list