summaryrefslogtreecommitdiff
path: root/lib/libpthread
AgeCommit message (Collapse)Author
2018-02-25remove hard-coded -fomit-frame-pointer for pthread stuff,chs
let these use the same setting as the rest of the tree. the performance difference is marginal and this allows dtrace ustack() to work better.
2018-02-20Remove namespace restriction from pthread_condattr_{g,s}etclock(3)kamil
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.
2018-02-06fix duplicate declaration of pthread_atfork in unistd.hchristos
2017-12-26Needs to be protected since it has a timespec argument. Found by lint(1)christos
2017-12-08Revert last 2 updates - these are, of course, not needed at all...kre
2017-12-08This time do _lwp_park() timeout unconsting correctly not just compilably.kre
2017-12-08Deal with more lwp_park() timestamp unconstingkre
2017-12-08unconst the timestampchristos
2017-10-23Remove superfluous Tn.wiz
2017-10-22All the four functions described in the man page conform to POSIX.1abhinav
2017-10-22Add missing word in the sentenceabhinav
2017-10-22Add missing function names in the NAME section for rest of the man pages in ↵abhinav
libpthread
2017-10-22Remove description of pthread_barrierattr_getpshared and ↵abhinav
pthread_barrierattr_setpshared These functions are described in pthread_barrierattr(3) man page
2017-10-22Add rest of the pthread_barrier functions in the NAME sectionabhinav
2017-10-22Add pthread_attr_setdetachstate to NAME sectionabhinav
2017-10-22Add pthread_getattr_np to the NAME sectionabhinav
2017-09-09Support <pthread_typs.h> on C89 compilerskamil
Clang 5.0.0(svn) reports warnings on <pthread_types.h> for C99 constructs when used with strict -std=c89. Restrict designated initializers usage to C99 or newer code. C89 and C++ will share the same code without extension of designated initializers. PR 52285
2017-08-01pthread__attr_init_private:martin
malloc+memset -> calloc. Also initialize all values to the proper defaults. This fixes the "rustc panic" discussed on pkgsrc-users. OK: joerg
2017-07-17Typo in commentskrll
2017-07-11Implement __cxa_thread_atexit and __cxa_thread_atexit_impl. Thisjoerg
functions are used for destructors of thread_local objects. If a pending destructor exists, prevent unloading of shared objects. Introduce __dl_cxa_refcount interface for this purpose. When the last reference is gone and the object has been dlclose'd before, the unloading is finalized. Ideally, __cxa_thread_atexit_impl wouldn't exist, but libstdc++ insists on providing __cxa_thread_atexit as direct wrapper without further patching.
2017-07-09PR/52386: Use the number of iterations we document.christos
2017-07-03Remove workaround for ancient HTML generation code.wiz
2017-07-02Do not look at environmental variables for suid/guid binaries.joerg
2017-07-02Export the guard size of the main thread via vm.guard_size. Add ajoerg
complementary writable sysctl for the initial guard size of threads created via pthread_create. Let the existing attribut accessors do the right thing. Raise the default guard size for threads to 64KB.
2017-03-28Remove outdated CAVEATS.maya
Not sure everything is standards compliant, but I've been told non-default values are supported and pshared exists.
2017-03-05Fix man page ERRORS section for (clock,pthread}_getcpuclockid to matchnjoly
reality.
2017-03-04Fix {clock,pthread}_getcpuclockid to return an error number onnjoly
failure, to match OpenGroup specifications.
2017-02-08libpthread_dbg(3) deletion from the base distributionkamil
libpthread_dbg(3) is a remnant library from the M:N thread model (pre-NetBSD-5.0) API to introspect threads within a process and for use of debuggers. Currently in the 1:1 model it's not used in GDB neither in LLDB and it's not either planned to be used. It's current function to read pthread_t structures is realizable within a regular debugger capable to instrospect objects within a tracee (GDB, LLDB...). Remaining users of this API can still use this library from pkgsrc/devel/libpthread_dbg. Sponsored by <The NetBSD Foundation>
2017-02-02Fix a typo : pthread_mutexaddr_init -> pthread_mutexattr_init.njoly
2016-11-24Bump date for previous.wiz
2016-11-22Add reference in SEE ALSO to pthread_dbg(3)kamil
Sponsored by <The NetBSD Foundation>
2016-10-31Don't spin if we already own the mutex, otherwise we will get stuck spinningchristos
forever, fixes timemutex{1,2} tests.
2016-10-30POSIX harder the pthread_mutex_timedlock(3) prototypekamil
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.
2016-07-20unnamed unions need special treatment since they need braced initializerschristos
for old style initializations.
2016-07-20cplusplus does not like complex named initializers...christos
2016-07-20use named initializerschristos
2016-07-17Use anonymous union for ptm_ceiling and old __pthread_spin_t field toskrll
maintain backward compatibility and fix hppa build. hppa has an non- integer type __pthread_spin_t
2016-07-16KNFskrll
2016-07-05Fix some lint.wiz
Too much or too little whitespace; improve macro usage; add missing .El; merge error sections for same error code.
2016-07-03GSoC 2016 Charles Cui: Implement thread priority protection based on workchristos
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).
2016-04-24Formatting, typos, whitespace fixes.wiz
2016-04-24commit the right file.christos
2016-04-23bumpchristos
2016-04-23Add pthread_getcpuclockid(3)christos
2016-04-07_SC_PAGESIZE is not the page size; it's a symbolic code for retrievingdholland
the page size.
2015-08-27Fix PTHREAD_FOO_INITIALIZER for C++ by not using volatile in the relevantpooka
pthread types in C++ builds, attempt 2. The problem with attempt 1 was making assumptions of what the MD __cpu_simple_lock_t (declared volatile) looks like. To get a same type except non-volatile, we change the MD type to __cpu_simple_lock_nv_t and typedef __cpu_simple_lock_t as a volatile __cpu_simple_lock_nv_t. IMO, __cpu_simple_lock_t should not be volatile at all, but changing it now is too risky. Fixes at least Rumprun w/ gcc 5.1/5.2. Furthermore, the mpd application (and possibly others) will no longer require NetBSD-specific patches. Tested: build.sh for i386, Rumprun for x86_64 w/ gcc 5.2. Based on the patch from Christos in lib/49989.
2015-08-25Revert 1.14 now that the arduous task of fixing rumphijack to allowpooka
mmap() in early init has been completed.
2015-06-26Rev 1.14 was nice except it didn't work with _INITIALIZER, whichpooka
sort of negates the whole point ... so revert everything while in drawing board mode.
2015-06-26Don't depend on __CPU_SIMPLE_LOCK_PAD to determine the type ofpooka
__cpu_simple_lock_t (because it doesn't). Instead, use sizeof/alignof with a struct { uchar[] }. Fixes problem in previous commit, caught by Nick Hudson.
2015-06-26C++ (namely libc++) expects to be using PTHREAD_FOO_INITIALIZER as apooka
member initializer. This does not work for volatile types. Since C++ does not touch the guts of those types, redefine them as non-volatile. Fixes libc++ compilation with g++ 5.1, as reported in PR lib/49989.