X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 29 Jul 2011 13:29:10 -0400 Message-ID: Subject: Re: Pthread error? From: Jan Chludzinski To: cygwin AT cygwin DOT com, gcc-help AT gcc DOT gnu DOT org Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p6THUpjM013244 Can't blame IBM either. I had to replace pthread_getthreadid_np() (in the IBM example code) with pthread_self() because Cygwin doesn't support/have pthread_getthreadid_np(). And the IBM docs say pthread_getthreadid_np() returns "a structure containing the hi and low order 4 bytes of the 64bit ID". The 2 "%.8x" would make sense. ---Jan On Fri, Jul 29, 2011 at 1:16 PM, Jan Chludzinski wrote: > Thanks! > > This is an example (from IBM) I cut-and-paste into Emacs to better > understand pthread_once(...).  Didn't notice the two "%.8x" in > printf(). > > Thanks again, Jan > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple