bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Test framework; and what should be in 1.1.0


From: Albert Strasheim
Subject: Re: Test framework; and what should be in 1.1.0
Date: Fri, 3 Jan 2003 16:59:01 +0200
User-agent: Mutt/1.4i

Hello,

On Fri, 03 Jan 2003, Albert Strasheim wrote:

> > Seems you want to provide a Thread class implemented on top of Pth? 
> > Isn't the pthread_* code always going to be inferior to this 
> > implementation?
> 
> I am a bit mistaken here. Seems Pth uses the exact same function names, 
> etc., so the existing code remains unmodified? And you can decide if you 
> want to link against Pth, or just straight glibc (at least on Linux).

You can get the exact same function names, if you use the backward 
compatible headers. The "normal" Pth functions are called pth_*.
 
> And then on platforms with some weird thread library, you now get 
> existing code to compile by using Pth. Sweet.

Generally you don't want to link against Pth on Linux? Pth doesn't 
contain any platform specific code, so it also doesn't support SMP and 
other nice bits and pieces. When the new thread code in glibc 2.3 and 
Linux 2.5/2.6 hits town, you'll probably definately want to be linking 
against that instead of against Pth. But on other platforms you probably 
have no choice.

Cheers,

Albert




reply via email to

[Prev in Thread] Current Thread [Next in Thread]