pcp
[Top] [All Lists]

Re: [pcp] Steps towards a thread-safe libpcp

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: [pcp] Steps towards a thread-safe libpcp
From: "Josef 'Jeff' Sipek" <jeffpc@xxxxxxxxxxxxxx>
Date: Tue, 22 Mar 2011 09:46:28 -0400
Cc: pcp@xxxxxxxxxxx
In-reply-to: <1300748129.12077.86.camel@xxxxxxxxxxxxxxxx>
References: <1300748129.12077.86.camel@xxxxxxxxxxxxxxxx>
User-agent: Mutt/1.5.20 (2009-06-14)
On Tue, Mar 22, 2011 at 09:55:29AM +1100, Ken McDonell wrote:
...
> The code works as expected on ia32 Ubuntu and Mac OS X 10.6 ... I'd be
> keen to get confirmation from others with access to a more varied set of
> platforms ... e.g. RedHat and SuSE variants, Solaris, Windows,
> x86_64, ...


$ gcc -Wall -O2 -lpthread pthreadmutex.c 
pthreadmutex.c: In function ‘func’:
pthreadmutex.c:20: warning: implicit declaration of function ‘strcmp’
pthreadmutex.c:33: warning: implicit declaration of function ‘wait’
pthreadmutex.c: At top level:
pthreadmutex.c:49: warning: return type defaults to ‘int’
$ ./a.out 
Congratulations, you're in a bozo-free zone

gcc version 4.4.5 (Debian 4.4.5-10) 
Linux maat 2.6.32-3-amd64 #1 SMP Wed Feb 24 18:07:42 UTC 2010 x86_64 GNU/Linux


Jeff.

-- 
The obvious mathematical breakthrough would be development of an easy way to
factor large prime numbers.
                - Bill Gates, The Road Ahead, pg. 265

<Prev in Thread] Current Thread [Next in Thread>