#
6dca39b9 |
| 20-Feb-2018 |
kamil <kamil@NetBSD.org> |
Remove namespace restriction from pthread_condattr_{g,s}etclock(3)
These functions were marked as _NETBSD_SOURCE when introduced to the sources. In fact they are regular POSIX threading functions av
Remove namespace restriction from pthread_condattr_{g,s}etclock(3)
These functions were marked as _NETBSD_SOURCE when introduced to the sources. In fact they are regular POSIX threading functions available since the 2001 standard. There is an older mention about alignment with "IEEE Std 1003.1j-2000".
This corrects usage of these functions when a source code is compiled with a POSIX namespace option.
show more ...
|
#
97e40f12 |
| 06-Feb-2018 |
christos <christos@NetBSD.org> |
fix duplicate declaration of pthread_atfork in unistd.h
|
#
4491ce1a |
| 26-Dec-2017 |
christos <christos@NetBSD.org> |
Needs to be protected since it has a timespec argument. Found by lint(1)
|
#
06b9d775 |
| 30-Oct-2016 |
kamil <kamil@NetBSD.org> |
POSIX harder the pthread_mutex_timedlock(3) prototype
Add missing __restrict keyword to the first pointer parameter.
It was already used for the second argument, should not be a functional change a
POSIX harder the pthread_mutex_timedlock(3) prototype
Add missing __restrict keyword to the first pointer parameter.
It was already used for the second argument, should not be a functional change and generated code should be the same.
This new form is now aligned with POSIX.
show more ...
|
#
7cf7644f |
| 03-Jul-2016 |
christos <christos@NetBSD.org> |
GSoC 2016 Charles Cui: Implement thread priority protection based on work by Andy Doran. Also document the get/set pshared thread calls as not implemented, and add a skeleton implementation that is d
GSoC 2016 Charles Cui: Implement thread priority protection based on work by Andy Doran. Also document the get/set pshared thread calls as not implemented, and add a skeleton implementation that is disabled. XXX: document _sched_protect(2).
show more ...
|
#
d394d2a9 |
| 23-Apr-2016 |
christos <christos@NetBSD.org> |
Add pthread_getcpuclockid(3)
|
#
2a29ccd3 |
| 03-Nov-2012 |
christos <christos@NetBSD.org> |
add pthread_condattr_setclock(3)
|
#
32d8a489 |
| 06-Aug-2010 |
christos <christos@NetBSD.org> |
Add pthread_getattr_np()
|
#
461a86f9 |
| 11-Jan-2009 |
christos <christos@NetBSD.org> |
merge christos-time_t
|
#
6ebb8696 |
| 18-Jul-2008 |
pooka <pooka@NetBSD.org> |
add pthread_cond_has_waiters_np()
|
#
271002f5 |
| 05-Jun-2008 |
ad <ad@NetBSD.org> |
Back out previous because it breaks the build.
|
#
b4ad7b01 |
| 05-Jun-2008 |
ad <ad@NetBSD.org> |
glibc compatibile PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP, requested by rafal@.
|
#
ce099b40 |
| 28-Apr-2008 |
martin <martin@NetBSD.org> |
Remove clause 3 and 4 from TNF licenses
|
#
b5e9addd |
| 26-Jan-2008 |
rmind <rmind@NetBSD.org> |
sched_setparam: fix the case when incorrect (according to the class) in-kernel priority is used. Reported by <drochner>.
Minor fixes for scheduling calls to conform the POSIX: - If pid is equal to
sched_setparam: fix the case when incorrect (according to the class) in-kernel priority is used. Reported by <drochner>.
Minor fixes for scheduling calls to conform the POSIX: - If pid is equal to zero, use the calling process; - In case of permission problem, return EPERM instead of EACESS; - sched_setscheduler() should return previously used policy; - pthread_* calls should return the error code or zero;
Should fix the namespace problems (and builds of some packages): - Move cpuset_t defintion from pset.h to sched.h; - Remove the #include of pset.h in pthread.h;
show more ...
|
#
19884cbf |
| 19-Jan-2008 |
christos <christos@NetBSD.org> |
s/set/test/
|
#
f2df27b7 |
| 19-Jan-2008 |
christos <christos@NetBSD.org> |
only include <sys/pset.h> if _NETBSD_SOURCE
|
#
5c71a4d4 |
| 15-Jan-2008 |
rmind <rmind@NetBSD.org> |
Implementation of processor-sets, affinity and POSIX real-time extensions. Add schedctl(8) - a program to control scheduling of processes and threads.
Notes: - This is supported only by SCHED_M2; -
Implementation of processor-sets, affinity and POSIX real-time extensions. Add schedctl(8) - a program to control scheduling of processes and threads.
Notes: - This is supported only by SCHED_M2; - Migration of LWP mechanism will be revisited;
Proposed on: <tech-kern>. Reviewed by: <ad>.
show more ...
|
#
989565f8 |
| 24-Dec-2007 |
ad <ad@NetBSD.org> |
- Fix pthread_rwlock_trywrlock() which was broken.
- Add new functions: pthread_mutex_held_np, mutex_owner_np, rwlock_held_np, rwlock_wrheld_np, rwlock_rdheld_np. These match the kernel's locking
- Fix pthread_rwlock_trywrlock() which was broken.
- Add new functions: pthread_mutex_held_np, mutex_owner_np, rwlock_held_np, rwlock_wrheld_np, rwlock_rdheld_np. These match the kernel's locking primitives and can be used when porting kernel code to userspace.
- Always create LWPs detached. Do join/exit sync mostly in userland. When looped on a dual core box this seems ~30% quicker than using lwp_wait(). Reduce number of lock acquire/release ops during thread exit.
show more ...
|
#
4084ca7f |
| 27-Nov-2007 |
ad <ad@NetBSD.org> |
Add thr_curcpu(), pthread_curcpu_np().
|
#
095b25e7 |
| 14-Nov-2007 |
drochner <drochner@NetBSD.org> |
Add pthread_equal() to libc stubs; this makes a lot of sense for threadsafe libraries implementing own locking functions. Ride on yesterday's minor version bumps.
|
#
9cf9c231 |
| 21-Mar-2005 |
kleink <kleink@NetBSD.org> |
Add restrict qualifiers to <pthread.h> function arguments.
|
#
fae5965c |
| 29-Dec-2004 |
nathanw <nathanw@NetBSD.org> |
Implement pthread_attr_{set,get}schedpolicy() at the same level as the other scheduling stuff: only handle SCHED_OTHER. Like the rest of the scheduling stuff, this is for the benefit of code that can
Implement pthread_attr_{set,get}schedpolicy() at the same level as the other scheduling stuff: only handle SCHED_OTHER. Like the rest of the scheduling stuff, this is for the benefit of code that can't be bothered to test against _POSIX_THREAD_PRIORITY_SCHEDULING.
show more ...
|
#
dd4b29f9 |
| 15-Dec-2004 |
wiz <wiz@NetBSD.org> |
Fix typo in comment.
|
#
480a2816 |
| 13-Dec-2004 |
nathanw <nathanw@NetBSD.org> |
Add #defines to make use of libc stubs for pthread_cond_wait() and pthread_cond_timedwait().
XXX as noted in the comments, in the situations where these are useful, they should never be called in a
Add #defines to make use of libc stubs for pthread_cond_wait() and pthread_cond_timedwait().
XXX as noted in the comments, in the situations where these are useful, they should never be called in a single-threaded process. Perhaps they should die rather than return 0.
Addresses xsrc/28630.
show more ...
|
#
0eaa8971 |
| 10-Dec-2004 |
nathanw <nathanw@NetBSD.org> |
Use CPP macros to cause many libpthread functions used by applications to be transformed into the do-nothing-when-libpthread-isn't-linked libc stub names. This will permit library code that uses <pth
Use CPP macros to cause many libpthread functions used by applications to be transformed into the do-nothing-when-libpthread-isn't-linked libc stub names. This will permit library code that uses <pthread.h> and pthread functions "defensively" to not need to link against libpthread and not need to be patched to the threadlib.h API.
show more ...
|