lsb

PTHREAD_THREADS_MAX not needed?

Bug #1327281 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lsb
In Progress
Medium
Unassigned
Mandriva
In Progress
Medium

Bug Description

(from bug 3156 comment 14) there's a devchk complaint about
PTHREAD_THREADS_MAX.

POSIX does describe this:

     {PTHREAD_THREADS_MAX}
         Maximum number of threads that can be created per process.
         Minimum Acceptable Value: {_POSIX_THREAD_THREADS_MAX}

and we have it:

/opt/lsb/include/limits.h:#define PTHREAD_THREADS_MAX 16384

but glibc doesn't use it this way, only the sysconf value makes sense:

/* The number of threads per process. */
#define _POSIX_THREAD_THREADS_MAX 64
/* We have no predefined limit on the number of threads. */
#undef PTHREAD_THREADS_MAX

(that is, sysconf(_SC_THREAD_THREADS_MAX) will give you a usable value at
runtime)

what should we do here?
[reply] [-] Comment 1

Tags: sdk uplift zpunt
Changed in mandriva:
importance: Unknown → Medium
status: Unknown → In Progress
Jeff Johnson (n3npq)
tags: added: zpunt
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.