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

Re: Runtime detection of old Linux threads vs NPTL



> I would like to detect at runtime if I am using the old Linux threads or
> the new POSIX threads. My application needs to run in both worlds and
> since signal handling has changed we need to configure the application
> correctly.

You can use confstr (_CS_GNU_LIBPTHREAD_VERSION).




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