mirror of https://github.com/python/cpython
Patch #510825: PTHREAD_SCOPE_SYSTEM support for HP-UX
(pass non-null argument to pthread_create). 2.2.1 candidate.
This commit is contained in:
parent
3356766abf
commit
a82d3470ec
|
@ -1109,9 +1109,10 @@ pthread_create (NULL, NULL, start_routine, NULL)], [
|
||||||
}
|
}
|
||||||
main() {
|
main() {
|
||||||
pthread_attr_t attr;
|
pthread_attr_t attr;
|
||||||
|
pthread_t id;
|
||||||
if (pthread_attr_init(&attr)) exit(-1);
|
if (pthread_attr_init(&attr)) exit(-1);
|
||||||
if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
|
if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
|
||||||
if (pthread_create(NULL, &attr, foo, NULL)) exit(-1);
|
if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
|
||||||
exit(0);
|
exit(0);
|
||||||
}],
|
}],
|
||||||
ac_cv_pthread_system_supported=yes,
|
ac_cv_pthread_system_supported=yes,
|
||||||
|
|
Loading…
Reference in New Issue