summaryrefslogtreecommitdiff
path: root/lib/libpthread/include
AgeCommit message (Collapse)Author
2015-03-19Provide #defines for the mutex types as required by POSIX. Pointed out byMark Kettenis
guenther@ and found out the hard way by landry@ ok guenther@
2014-07-16zap trailing newlines; "go for it" deraadtOkan Demirmen
2013-06-17Add support for the _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME options,Philip Guenther
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@
2013-06-02somehow missed spinlock.h here. broke bmercer's build.Ted Unangst
2013-06-01cleanup and consolidate the spinlock_lock (what a name!) code.Ted Unangst
it's now atomic_lock to better reflect its usage, and librthread now features a new spinlock that's really a ticket lock. thrlseep can handle both types of lock via a flag in the clock arg. (temp back compat hack) remove some old stuff that's accumulated along the way and no longer used. some feedback from dlg, who is concerned with all things ticket lock. (you need to boot a new kernel before installing librthread)
2013-03-26needs sys/cdefs.h because a case has been found where it is pulledTheo de Raadt
independently; spotted by sthen/naddy
2013-03-24SEM_VALUE_MAX belongs in <limits.h> (via sys/syslimits.h)Philip Guenther
struct sem --> struct __sem (doesn't belong in public namespace) Zap pointless _KERNEL tests ok deraadt@
2013-03-24machine/limits.h does not contain everything this file wants. It wantsTheo de Raadt
the MI sys/limits.h, and has been getting lucky that all callers had already pulled that in via other means.
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-11-05typedef pthread_key_t to an int instead of a volatile int, reverts a chunkLandry Breuil
from r1.11. This allows webkit with --enable-debug to build, and is in line with what FreeBSD/NetBSD uses. ok kettenis@ guenther@
2012-07-11sem_timedwait() needs the struct timespec tag to be pre-declared here.Philip Guenthe
Add restrict qualifiers.
2012-05-14More sysconf(3)-y and pathconf(3)-y goodness from Brad.Matthew Dempsky
ok guenther, millert (and me); bulk build test by naddy
2012-05-03Add pthread spinlock support.Paul Irofti
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@.
2012-04-14Add new mutex type, PTHREAD_MUTEX_STRICT_NP which checks for applicationKurt Miller
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@
2012-04-12Remove incorrect -pthread preprocessor define _POSIX_THREADS and replaceKurt Miller
with _REENTRANT. Also remove undef _POSIX_THREADS in phread.h. From brad@comstyle.com. okay guenther@
2012-04-11Add pthread barrier support.Paul Irofti
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@.
2012-03-22Remove prototypes for unimplemented non-portable functions in rthreads.Kurt Miller
okay deraadt@
2012-03-22Remove pthread_suspend* and related functions. This is part of theKurt Miller
rthreads major library bump from last night. okay kettenis@
2012-03-22<sched.h> is never pulled in from the kernel and #ifdef KERNEL would bePhilip Guenthe
the wrong symbol anyway, so zap some lines ok matthew@
2012-03-22Hide behind #if 0 the sched_*() functions that we don't have yetPhilip Guenthe
Requested and tested against ports by aja@, ok matthew@
2012-03-03Add sem_timewait() and fix sem_wait()'s handling of signals, soPhilip Guenthe
that it resumes waiting unless the thread was canceled. As part of this, change the internal _sem_wait() function to return zero on success and an errno value on failure instead of 1 on success and zero on failure.
2012-02-23Add pthread_condattr_{get,set}clock(), requested by aja@Philip Guenthe
Add pthread_mutex_timedlock(), requested by dcoppa@
2012-01-03The prototype for pthread_sigmask(2) is supposed to live in <signal.h>Mark Kettenis
instead of <pthread.h>. ok guenther@, millert@
2010-04-12Add support for pthread_rwlock_timed locks.Ted Unangst
from brad. ok kurt, who's too busy to commit
2008-12-18Add pthread_attr_[sg]etguardsize() to match rthread, including manpagesPhilip Guenthe
Bump lib minor ok otto@ kurt@ marc@; doc review by jmc@
2008-06-25Move _POSIX_THREAD_SAFE_FUNCTIONS into unistd.h and set it to 200112Todd C. Miller
now that we support all the _r functions required by POSIX 1003.1-2001. Also define _POSIX_REENTRANT_FUNCTIONS. OK kurt@ deraadt@
2007-03-15give _POSIX_THREAD_* defines a value of 1 so applications thatKurt Miller
conditionally compile code using these defines will work. okay tedu@, marc@, milllert@
2006-05-30Bump minimum stack size; current setting causes hangs or illegalOtto Moerbeek
instructions once every few runs. Problem noted by Botond Botyanszki. ok marc@
2006-04-09Change a debug interface to take const char pointers so we don't aveKenneth R Westerback
to cast away constness whenever we want to pass in a string that is already const -- we copy the string if we want to use it, so having it be non-const in the first place does not make any sense. From tholo@ ok tedu@
2005-10-31- Prefix MUTEX_TYPE_MAX with PTHREAD_ to avoid namespace pollution.Brad Smith
- Remove the macros MUTEX_TYPE_FAST and MUTEX_TYPE_COUNTING_FAST. From stefanf FreeBSD ok fgsch@
2005-10-30and make sure the header change goes in too.Brad Smith
2004-05-01pthead_supsend_all_np and pthread_resume_all_np from freebsd viaMarco S Hyman
Kurt Miller <truk at optonline.net>. Kurt says: They're needed for the java hotspot compiler in the 1.3+ jdk OK brad@
2004-02-24Sync closer to FreeBSD's pthread.h. Fixes up some prototypesBrad Smith
and formatting. ok marc@
2004-02-22add pthread_attr_[get|set]stackBrad Smith
From: FreeBSD's libc_r ok marc@
2004-02-22Some cleanup of pthread.h. Don't conditionalizeBrad Smith
inclusion of prototypes. Remove some prototypes for functions we do not implement. From: FreeBSD's libc_r ok marc@
2004-02-16Add missing const for function parameters to match POSIX.Brad Smith
From: FreeBSD's libc_r ok marc@
2004-01-27remove redundant prototypes for pthread_[gs]etconcurrencyBrad Smith
in-between #ifdef notyet
2004-01-26Change read_stackseg_np to work with any thread, not just the currentMarco S Hyman
thread. Requested by truk at optonline dot net and OK-ed by tedu @.
2004-01-15threaded version of closefromMarco S Hyman
pthread_stackseg_np added. Minor bump for these changes occurred a day or so ago and will not be bumped again
2003-12-23Add stub implementations of pthread_[gs]etconcurrencyBrad Smith
From: FreeBSD' libc_r ok marc@
2003-02-27Don't need to specify both __dead and __attribute__((__noreturn__)) forChad Loder
pthread_exit prototype. Replace with just __dead. OK millert@, marc@
2003-01-31Create a siginfo_t for thread-to-thread kill.Marco S Hyman
Clean up (compiler warning elimination). Compile check options added but commented out as they have not been checked on all architectures, yet.
2003-01-20Use the sources that exist in sibdirs of libpthread, not libc_rMarco S Hyman
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-01-18tab vs. spacesFederico G. Schwindt
2002-01-18while im here, move the ifndef _SCHED_H_ after the copyright message.Federico G. Schwindt
2002-01-18From FreeBSD: header for POSIX 1003.1b semaphores.Federico G. Schwindt
2002-01-10Change 1st arg in pthread_attr_getdetachstate to const.Federico G. Schwindt
2001-12-08Partially sync with FreeBSD; mostly pthread_cancel(3) related changes.Federico G. Schwindt
make includes is needed in case you want to play.