This is the mail archive of the cygwin-developers@cygwin.com 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: [tpfaff@cygwin.com: src/winsup/cygwin ChangeLog thread.cc thread.h]


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.


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