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 Message-ID: <011301c0c3f1$24e92e10$0200a8c0@lifelesswks> From: "Robert Collins" To: Subject: InterlockedExchangePointer & pthread_atfork Date: Fri, 13 Apr 2001 18:10:02 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-OriginalArrivalTime: 13 Apr 2001 08:03:18.0140 (UTC) FILETIME=[32FD43C0:01C0C3F0] 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. Rob