Nothing is simple when you want to have 
C code for multiples OS :)

That's why APR was developped ...

-
Henri Gomez                 ___[_]____
EMAIL : [EMAIL PROTECTED]        (. .)                     
PGP KEY : 697ECEDD    ...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-----Original Message-----
>From: Pogo Com [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, April 24, 2001 7:13 PM
>To: GOMEZ Henri; [EMAIL PROTECTED]
>Subject: RE: [PATCH] mod_jk timestamp and process id logging
>
>
>This is starting to sound complicated.  I'd say go with the 
>getpid(), since it
>covers a major case and is pretty portable and simple.
>
>Bill
>
>
>--- GOMEZ Henri <[EMAIL PROTECTED]> wrote:
>> Depend the OS:
>> 
>> AS/400 =>
>> 
>> int GetThreadId()
>> {
>>      pthread_t               lSelf = pthread_self();
>>      pthread_id_np_t lTid;
>> 
>>      pthread_getunique_np(&lSelf, &lTid);
>>      return (lTid.intId.lo);
>> }
>> 
>> Linux =>
>> 
>> int GetThreadId()
>> {
>>      return (pthread_self());
>> }
>> 
>> What about others platforms like AIX/HPUX/Windows....
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Auctions - buy the things you want at great prices
>http://auctions.yahoo.com/
>

Reply via email to