Re: PTHREAD_THREADS_MAX missing?

Mark Brown <[email protected]>
Newsgroups gmane.comp.lib.phil
Message-ID <OF2E80C754.6A603DFC-ON86256CFC.007D0334-86256CFC.007D28E2@us.ibm.com>
> That brings up the question: what does sysconf(_SC_THREAD_THREADS_MAX) 
> return in nptl?
> Uh-oh, looks like it might be -1; see
> 
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/posix/sysconf.c?rev=1.32
> 
>      case _SC_THREAD_THREADS_MAX:
> #ifdef  PTHREAD_THREADS_MAX
>        return PTHREAD_THREADS_MAX;
> #else
>        return -1;
> #endif
> 
> Is that compliant?

Yes, if _SC_THREAD_THREADS_MAX truly has no limit (except for actual 
resource
availability), and errno is not changed.


-------------------
Mark S. Brown 
STSM, UNIX/Linux OS Standards
IBM Systems Group
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.