summaryrefslogtreecommitdiff
path: root/tests/test-pthread-c++.cc
Commit message (Collapse)AuthorAgeFilesLines
* maint: run 'make update-copyright'Simon Josefsson2023-01-011-1/+1
|
* license: fix GPLv3 texts to use a comma instead of semicolon.Bernhard Voelker2022-01-051-1/+1
| | | | | | | | | See: https://www.gnu.org/licenses/gpl-3.0.html#howto Run: $ git grep -l 'Foundation; either version 3' \ | xargs sed -i '/Foundation; either version 3/ s/n; e/n, e/' * All files using GPLv3: Adjust via the above command.
* maint: run 'make update-copyright'Paul Eggert2022-01-011-1/+1
|
* maint: run 'make update-copyright'Paul Eggert2020-12-311-1/+1
|
* maint: Run 'make update-copyright'Paul Eggert2019-12-311-1/+1
|
* Fix compilation errors in C++ mode on FreeBSD.Bruno Haible2019-12-081-1/+1
| | | | | | | * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype. * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise. * lib/threads.in.h (thrd_exit): Likewise. * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
* pthread-thread: Fix prototype of pthread_attr_getdetachstate.Bruno Haible2019-11-201-1/+1
| | | | | | | * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter to 'const pthread_attr_t *'. * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise. * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
* pthread-h: Add declarations of essential pthread functions.Bruno Haible2019-07-151-0/+259
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/pthread.in.h: Include snippets. (pthread_create, pthread_attr_init, pthread_attr_getdetachstate, pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self, pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once, pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype, pthread_mutexattr_settype, pthread_mutexattr_getrobust, pthread_mutexattr_setrobust, pthread_mutexattr_destroy, pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock, pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init, pthread_rwlockattr_destroy, pthread_rwlock_rdlock, pthread_rwlock_wrlock, pthread_rwlock_tryrdlock, pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock, pthread_rwlock_unlock, pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init, pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait, pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy, pthread_key_create, pthread_setspecific, pthread_getspecific, pthread_key_delete, pthread_spin_init, pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New declarations. (pthread_mutex_timedlock): Move declaration. * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are declared. (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_* variables for the new functions. * modules/pthread-h (Depends-on): Add snippet/c++defs, snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use. (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_* variables for the new functions. Split the sed script, to avoid the limit of 99 commands of HP-UX sed. * tests/test-pthread-c++.cc: Check the signature of the new functions.
* pthread-h: Add C++ tests.Bruno Haible2019-07-151-0/+36
* tests/test-pthread-c++.cc: New file. * modules/pthread-h-c++-tests: New file.