summaryrefslogtreecommitdiff
path: root/lib/libpthread/pthread.c
AgeCommit message (Collapse)Author
2003-02-28Disable userlevel nanosleep() until I find the timer/alarm bug that itnathanw
is tickling.
2003-02-26In pthread_create(), rearrange name-setting code so that name is setnathanw
to NULL when the attribute structure does not have a private field allocated.
2003-02-26Add support for naming a thread, using an API compatible with Tru64 Unix:thorpej
* pthread_attr_getname_np() * pthread_attr_setname_np() * pthread_getname_np() * pthread_setname_np() In addition to being query'able by the application (for log messages, etc.), it is intended that these names can show up in the debugger. Reviewed by nathanw.
2003-02-22In pthread_exit(), clear pt_canceled in addition to settingnathanw
PT_FLAG_CS_DISABLED in pt_flags. Prevents cancellation cleanup handlers from thinking that they've been canceled and exiting mid-handler. Problem spotted by Matt Thomas.
2003-02-15Define a pthread-specific assert function, pthread__assert(), thatnathanw
bails out without trying to flush stdio buffers.
2003-01-31Use pthread__sched_sleepers() instead of iterating over sleep queuesnathanw
ourself.
2003-01-29cosmeticsdrochner
2003-01-25Make pthread_join() accomodate spurious wakeups from pthread__block().nathanw
2003-01-19Add some threadlib stubs that are used by X:thorpej
* thr_create() (stub in libc aborts) * thr_exit() (stub in libc calls exit()) * thr_yield() (stub in libc does nothing) Also make the libc thr_self() stub not abort. XXX Should we add thrattr_*() stubs for setting the detach-state?
2003-01-19- constify the get functionschristos
- remove argument variable names since they pollute the namespace - add mock implementation of the missing stack functions XXX: we need to do this right [i.e. actually get and set sizes and addresses] but the current stack setup makes this a bit complicated.
2003-01-18de-lintchristos
2003-01-18Merge the nathanw_sa branch.thorpej