summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/include/pthread.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move the thread-related .h files to /usr/src/include/, since theguenther2017-10-151-315/+0
| | | | | | | implementation is now spread between libc and librthread. No changes to the content ok mpi@
* Provide #defines for the mutex types as required by POSIX. Pointed out bykettenis2015-03-191-9/+6
| | | | | | guenther@ and found out the hard way by landry@ ok guenther@
* Add support for the _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME options,guenther2013-06-171-1/+5
| | | | | | | | including CLOCK_{PROCESS,THREAD}_CPUTIME_ID constants and {clock,pthread}_getcpuclockid() functions. Worked out at t2k13 with help from tedu@ and matthew@ and testing by aja@ ok matthew@
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-051-2/+1
| | | | ok guenther millert kettenis
* typedef pthread_key_t to an int instead of a volatile int, reverts a chunklandry2012-11-051-2/+2
| | | | | | from r1.11. This allows webkit with --enable-debug to build, and is in line with what FreeBSD/NetBSD uses. ok kettenis@ guenther@
* More sysconf(3)-y and pathconf(3)-y goodness from Brad.matthew2012-05-141-15/+1
| | | | ok guenther, millert (and me); bulk build test by naddy
* Add pthread spinlock support.pirofti2012-05-031-1/+7
| | | | | | | | | | | Implementation, documentation and naive regression tests for: - pthread_spin_init() - pthread_spin_destroy() - pthread_spin_lock() - pthread_spin_trylock() - pthread_spin_unlock() Implementation okay guenther@, documentation okay jmc@.
* Add new mutex type, PTHREAD_MUTEX_STRICT_NP which checks for applicationkurt2012-04-141-3/+4
| | | | | | | | errors similar to PTHREAD_MUTEX_ERRORCHECK, however upon error it aborts. The rational is that many applications don't check the return values on pthread functions and will miss the errors that ERRORCHECK returns. PTHREAD_MUTEX_STRICT_NP will be our default mutex type for awhile okay guenther@ dcoppa@
* Remove incorrect -pthread preprocessor define _POSIX_THREADS and replacekurt2012-04-121-6/+1
| | | | | with _REENTRANT. Also remove undef _POSIX_THREADS in phread.h. From brad@comstyle.com. okay guenther@
* Add pthread barrier support.pirofti2012-04-111-1/+16
| | | | | | | | | | | | | | | Implementation and documentation for: - pthread_barrier_init() - pthread_barrier_destroy() - pthread_barrier_wait() - pthread_barrierattr_init() - pthread_barrierattr_destroy() - pthread_barrierattr_getpshared() - pthread_barrierattr_setpshared() Currently only private barriers are supported. Okay guenther@.
* Add pthread_condattr_{get,set}clock(), requested by aja@guenther2012-02-231-1/+7
| | | | Add pthread_mutex_timedlock(), requested by dcoppa@
* The prototype for pthread_sigmask(2) is supposed to live in <signal.h>kettenis2012-01-031-2/+1
| | | | | | instead of <pthread.h>. ok guenther@, millert@
* Add support for pthread_rwlock_timed locks.tedu2010-04-121-1/+5
| | | | from brad. ok kurt, who's too busy to commit
* Add pthread_attr_[sg]etguardsize() to match rthread, including manpagesguenther2008-12-181-1/+3
| | | | | | Bump lib minor ok otto@ kurt@ marc@; doc review by jmc@
* Move _POSIX_THREAD_SAFE_FUNCTIONS into unistd.h and set it to 200112millert2008-06-251-2/+1
| | | | | now that we support all the _r functions required by POSIX 1003.1-2001. Also define _POSIX_REENTRANT_FUNCTIONS. OK kurt@ deraadt@
* give _POSIX_THREAD_* defines a value of 1 so applications thatkurt2007-03-151-8/+8
| | | | | conditionally compile code using these defines will work. okay tedu@, marc@, milllert@
* Bump minimum stack size; current setting causes hangs or illegalotto2006-05-301-2/+2
| | | | | instructions once every few runs. Problem noted by Botond Botyanszki. ok marc@
* - Prefix MUTEX_TYPE_MAX with PTHREAD_ to avoid namespace pollution.brad2005-10-311-6/+2
| | | | | | | | - Remove the macros MUTEX_TYPE_FAST and MUTEX_TYPE_COUNTING_FAST. From stefanf FreeBSD ok fgsch@
* and make sure the header change goes in too.brad2005-10-301-1/+2
|
* Sync closer to FreeBSD's pthread.h. Fixes up some prototypesbrad2004-02-241-31/+29
| | | | | | and formatting. ok marc@
* add pthread_attr_[get|set]stackbrad2004-02-221-2/+4
| | | | | | From: FreeBSD's libc_r ok marc@
* Some cleanup of pthread.h. Don't conditionalizebrad2004-02-221-40/+1
| | | | | | | | | inclusion of prototypes. Remove some prototypes for functions we do not implement. From: FreeBSD's libc_r ok marc@
* Add missing const for function parameters to match POSIX.brad2004-02-161-3/+3
| | | | | | From: FreeBSD's libc_r ok marc@
* remove redundant prototypes for pthread_[gs]etconcurrencybrad2004-01-271-3/+1
| | | | in-between #ifdef notyet
* Add stub implementations of pthread_[gs]etconcurrencybrad2003-12-231-1/+3
| | | | | | From: FreeBSD' libc_r ok marc@
* Don't need to specify both __dead and __attribute__((__noreturn__)) forcloder2003-02-271-2/+2
| | | | | pthread_exit prototype. Replace with just __dead. OK millert@, marc@
* Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)millert2002-02-171-55/+47
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-60/+60
|
* Change 1st arg in pthread_attr_getdetachstate to const.fgsch2002-01-101-2/+3
|
* Partially sync with FreeBSD; mostly pthread_cancel(3) related changes.fgsch2001-12-081-9/+9
| | | | make includes is needed in case you want to play.
* use __x__ formats for __attribute__ arguments; guenther@gac.eduderaadt2000-12-061-2/+2
|
* always define _POSIX_THREADS; volatile some types (mickey@)d2000-01-061-7/+5
|
* Fix incorrect `pshared' argument type for pthread_rwlockattr_setpshared.alex2000-01-041-2/+2
| | | | rse@engelschall.com via FreeBSD.
* sync with FreeBSDd1999-11-251-16/+15
|
* Remove pthread_atfork()d1999-06-151-2/+1
|
* sync with FreeBSDd1999-05-261-39/+75
|
* missing const (freebsd)d1999-03-101-2/+2
|
* sync with previous changesd1999-01-181-13/+20
|
* cleand1998-12-211-26/+10
|
* sync with FreeBSDd1998-12-101-5/+9
|
* sync with FreeBSD (rwlock, gc thread, man pages)d1998-11-091-19/+26
| | | | | | | add (broken) mips md stuff fix some const warnings add sigaltstack() stub another hash at getting shlib auto-init to work (mips/elf and i386/a.out)
* missed these too. sighd1998-09-051-0/+317