On Mar 16, 2011, at 7:48 AM, Paul H. Hargrove wrote:
> I have looked before for symbols to distinguish LinuxThreads from NPTL, but I
> was not successful in finding anything. I don't recall if I examined headers
> for differences, but the implementations are binary compatible by design,
> maki
I have looked before for symbols to distinguish LinuxThreads from NPTL,
but I was not successful in finding anything. I don't recall if I
examined headers for differences, but the implementations are binary
compatible by design, making differences intentionally minimal.
I suppose one can grep
Is there a version in a pthreads header file that can be checked?
You're right that I am currently checking Linux kernel version, not pthread
version. Note that this is *only* in cross-compiling environments; in non cross
compiling situations, we actually test the behavior to see if threads have
My point was just that we support the current implementation of pthreads - not
any old one.
Also, to clarify: Jeff actually tests to see what the thread library does. We
only use the Linux kernel version when cross-compiling since we cannot, in that
case, actually test the support. We know that
Sorry, I stated my facts backwards.
CORRECTED facts:
+The old "LinuxThreads" implementation is the one that gave DIFFERENT
pids to each pthread.
+ "NPTL" is the current implementation of Pthreads for Linux, and the
one giving a single pid shared by all pthreads.
So, I hope Ralph's statement i
I believe the test is intended strictly for Linux threads. I don't believe we
have ever (intentionally) supported any other thread library in such
environments.
I'll leave it to Jeff to decide if he feels this is an issue.
On Mar 15, 2011, at 4:27 PM, Paul H. Hargrove wrote:
> I'd like to poi
I'd like to point out that it is libpthread and the arguments it passes
to clone(), NOT the Linux kernel version, that is the determining factor
(at least if you have a 2.6.x kernel). The "LinuxThreads"
implementation of Pthreads will give the one-pid-to-rule-them all
behavior, while the NPTL