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:
Martin v. Löwis 2002-02-24 16:05:05 +00:00
parent 3356766abf
commit a82d3470ec
2 changed files with 215 additions and 213 deletions

425
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -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,