Age | Commit message (Collapse) | Author |
|
guenther@ and found out the hard way by landry@
ok 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@
|
|
|
|
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)
|
|
independently; spotted by sthen/naddy
|
|
struct sem --> struct __sem (doesn't belong in public namespace)
Zap pointless _KERNEL tests
ok deraadt@
|
|
the MI sys/limits.h, and has been getting lucky that all callers had
already pulled that in via other means.
|
|
ok guenther millert kettenis
|
|
from r1.11. This allows webkit with --enable-debug to build, and is in
line with what FreeBSD/NetBSD uses.
ok kettenis@ guenther@
|
|
Add restrict qualifiers.
|
|
ok guenther, millert (and me); bulk build test by naddy
|
|
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@.
|
|
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@
|
|
with _REENTRANT. Also remove undef _POSIX_THREADS in phread.h.
From brad@comstyle.com. okay guenther@
|
|
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@.
|
|
okay deraadt@
|
|
rthreads major library bump from last night. okay kettenis@
|
|
the wrong symbol anyway, so zap some lines
ok matthew@
|
|
Requested and tested against ports by aja@, ok matthew@
|
|
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.
|
|
Add pthread_mutex_timedlock(), requested by dcoppa@
|
|
instead of <pthread.h>.
ok guenther@, millert@
|
|
from brad. ok kurt, who's too busy to commit
|
|
Bump lib minor
ok otto@ kurt@ marc@; doc review by jmc@
|
|
now that we support all the _r functions required by POSIX 1003.1-2001.
Also define _POSIX_REENTRANT_FUNCTIONS. OK kurt@ deraadt@
|
|
conditionally compile code using these defines will work.
okay tedu@, marc@, milllert@
|
|
instructions once every few runs. Problem noted by Botond Botyanszki.
ok marc@
|
|
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@
|
|
- Remove the macros MUTEX_TYPE_FAST and MUTEX_TYPE_COUNTING_FAST.
From stefanf FreeBSD
ok fgsch@
|
|
|
|
Kurt Miller <truk at optonline.net>. Kurt says:
They're needed for the java hotspot compiler in the 1.3+ jdk
OK brad@
|
|
and formatting.
ok marc@
|
|
From: FreeBSD's libc_r
ok marc@
|
|
inclusion of prototypes. Remove some prototypes
for functions we do not implement.
From: FreeBSD's libc_r
ok marc@
|
|
From: FreeBSD's libc_r
ok marc@
|
|
in-between #ifdef notyet
|
|
thread. Requested by truk at optonline dot net and OK-ed by
tedu @.
|
|
pthread_stackseg_np added. Minor bump for these changes occurred
a day or so ago and will not be bumped again
|
|
From: FreeBSD' libc_r
ok marc@
|
|
pthread_exit prototype. Replace with just __dead.
OK millert@, marc@
|
|
Clean up (compiler warning elimination). Compile check options added
but commented out as they have not been checked on all architectures, yet.
|
|
|
|
outside the tree)
|
|
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
|
|
|
|
|
|
|
|
|
make includes is needed in case you want to play.
|