summaryrefslogtreecommitdiff
path: root/modules/pthread-thread
Commit message (Collapse)AuthorAgeFilesLines
* pthread-h: Fix link errors with --enable-threads=isoc on AIX.Bruno Haible2019-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from gl_THREADLIB_EARLY_BODY. (gl_THREADLIB_EARLY_BODY): Invoke it. (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY. (gl_THREADLIB_BODY): Invoke it. (gl_PTHREADLIB): New macro. * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD. * modules/pthread-h (Files): Add threadlib.m4. (Depends-on): Remove threadlib. (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT and _THREAD_SAFE here. (Link): Use LIBPTHREAD, not LIBTHREAD. * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not LIBMULTITHREAD. * modules/pthread-once (Link): Likewise. * modules/pthread-mutex (Link): Likewise. * modules/pthread-rwlock (Link): Likewise. * modules/pthread-cond (Link): Likewise. * modules/pthread-tss (Link): Likewise. * modules/pthread-spin (Link): Likewise. * modules/pthread (Link): Likewise. * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise. * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise. * modules/pthread-once-tests (test_pthread_once1_LDADD, test_pthread_once2_LDADD): Likewise. * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise. * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise. * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise. * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
* pthread-thread: New module.Bruno Haible2019-07-151-0/+31
* lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove inline definitions. * lib/pthread-thread.c: New file. * m4/pthread-thread.m4: New file. * modules/pthread-thread: New file. * doc/posix-functions/pthread_create.texi: Mention the new module. * doc/posix-functions/pthread_attr_init.texi: Likewise. * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise. * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise. * doc/posix-functions/pthread_attr_destroy.texi: Likewise. * doc/posix-functions/pthread_self.texi: Likewise. * doc/posix-functions/pthread_equal.texi: Likewise. * doc/posix-functions/pthread_detach.texi: Likewise. * doc/posix-functions/pthread_join.texi: Likewise. * doc/posix-functions/pthread_exit.texi: Likewise.