pthread_attr_setscope fails

Enrique Perez-Terron enrique.perez-terron@norway.online.no
Thu Aug 26 10:39:00 GMT 2004


On Thu, 2004-08-26 at 12:32, Enrique Perez-Terron wrote:
>      long result = sysconf(_SC_THREAD_PRIORITY_SCHEDULING);
>      if (result == 1)
>        perror("sysconf");

Ooops, I meant if (result == -1)
                            ^^^

Result is:

   #./scope
   Thread priority scheduling: 1

-Enrique



More information about the Libc-alpha mailing list