mirror of
https://github.com/python/cpython
synced 2024-09-05 08:17:45 +00:00
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() {
|
||||
pthread_attr_t attr;
|
||||
pthread_t id;
|
||||
if (pthread_attr_init(&attr)) 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);
|
||||
}],
|
||||
ac_cv_pthread_system_supported=yes,
|
||||
|
|
Loading…
Reference in a new issue