This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthread_attr_setscope fails


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]