Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: Sat, 14 Apr 2001 22:46:10 -0400 From: Christopher Faylor To: cygwin-developers AT cygwin DOT com Subject: Re: InterlockedExchangePointer & pthread_atfork Message-ID: <20010414224610.A1128@redhat.com> Reply-To: cygwin-developers AT cygwin DOT com Mail-Followup-To: cygwin-developers AT cygwin DOT com References: <011301c0c3f1$24e92e10$0200a8c0 AT lifelesswks> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <011301c0c3f1$24e92e10$0200a8c0@lifelesswks>; from robert.collins@itdomain.com.au on Fri, Apr 13, 2001 at 06:10:02PM +1000 On Fri, Apr 13, 2001 at 06:10:02PM +1000, Robert Collins wrote: >I have implemented pthread_atfork. > >The problem is, there's a missing win32 API function: >InterlockedExchangePointer. > >I want to use that rather than InterLockedExchange, because >InterlockedExchangePointer is correct code for 64-bit systems (one less >thing to be fixed in the future). > >I suspect the function is implmented as inline code. How do I go about >getting that code into cygwin? (I'm currently trying to find a >non-copyrighted version of it). > >Alternatively I can just use InterlockedExchange, and leave a FIXME in >the code. The function doesn't exist in any of the MSVC v6 headers. I don't know if it is inlined or not but InterlockedExchange isn't and IIRC this routine was pretty complicated on windows 95, probably owing to the fact that W9x runs on more than just pentiums. cgf