Pthread error?
Brian Budge
brian.budge@gmail.com
Fri Jul 29 18:06:00 GMT 2011
Hi Jan -
The cygwin mailing list seems appropriate, but this question is not
related to gcc, so should probably not be posted on the gcc mailing
list. I'm glad you found your problem.
Brian
On Fri, Jul 29, 2011 at 10:29 AM, Jan Chludzinski
<jan.chludzinski@gmail.com> wrote:
> 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
> <jan.chludzinski@gmail.com> 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
>>
>
More information about the Gcc-help
mailing list