summaryrefslogtreecommitdiffstats
path: root/lib/librthread (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't call pthread_self()->tid when getthrid() will do fine.otto2006-01-021-2/+2
|
* thread stack handling changes. Add guard zones and allow stackmarc2006-01-015-43/+156
| | | | | | | | size (and guard zone size) to be set using pthread_attr. Guard zones are specified in bytes, but implemented in terms of a page size. OK Otto@
* Nicer implementation of pthread_main_np(), which avoids the spinlock.otto2006-01-011-7/+2
| | | | ok tedu@ marc@
* Add "print debug foo" function safe to use in signal handlers, example:marc2005-12-313-3/+89
| | | | | | | | | _rthread_debug(3, "foo = %s", foo); where output is to stderr and will only be printed if the current debug level is >= 3. Messages with a debug level of 0 are always printed. The level can be set from the environment (not enabled yet) or with gdb by modifying variable _rthread_debug_level. "Fine with me" -Otto
* No point in saving a bunch of extra registers, and the child's state mustdrahn2005-12-311-6/+8
| | | | | be fully saved in resisters, if left on the parents stack, it could be overwritten before the child runs. pointed out by miod.
* add pthread_mutexattr_gettype.brad2005-12-311-1/+9
| | | | ok otto@
* Implement suspend/resume and creation of initially suspended threads.otto2005-12-314-9/+86
| | | | | With this, java seems to be operational. Also make threads_ready non-static, which is needed for an upcoming diff. ok tedu@
* Remove exitinng thread from the list of threads. ok tedu@otto2005-12-301-1/+4
|
* use queue.h macros for thread house keeping; make some vars non-staticotto2005-12-303-25/+28
| | | | and fix a bug in thread creation error path. ok tedu@
* __aligned__ isn't really necessary on the struct, an aligned membertedu2005-12-301-2/+2
| | | | will make the right thing happen. verified by kettenis and drahn
* prototype all the thread syscalls in rthread.h for now.tedu2005-12-305-20/+17
| | | | update for new thrwakeup that takes a count argument
* Put the existing _np functions into separate file; introduceotto2005-12-293-28/+106
| | | | | pthread_stackseg_np(), from existing pthread lib. discussed with tedu@ ok marc@
* implement pthread_main_np(); ok tedu@otto2005-12-291-1/+13
|
* the story in pthread_rwlockattr_destory() shoudl be destroyedotto2005-12-291-2/+2
|
* remainder of the hppa support code for librthread. ok&help kettenis@ mickey@miod2005-12-281-0/+65
|
* sparc64 support code for librthread (_atomic_lock yanked from existingmiod2005-12-252-0/+113
| | | | libpthread code).
* sparc support code for librthread (_atomic_lock yanked from existingmiod2005-12-252-0/+114
| | | | libpthread code).
* remove silly alpha commenttedu2005-12-251-2/+2
|
* child calls threxit after thread returntedu2005-12-251-2/+2
|
* put the error handling jump code back in from brad/marcotedu2005-12-251-13/+2
| | | | call right sycall after threadfn return
* if the start routine returns (never happens), call the right threxit syscalltedu2005-12-251-6/+2
|
* A better implementation which does not use the caller's stack and thus is notmiod2005-12-251-35/+42
| | | | raceable.
* add rfork_thread for alpha, from kudo takashitedu2005-12-251-0/+50
|
* mips64 support code for librthread (_atomic_lock yanked from existingmiod2005-12-242-0/+117
| | | | libpthread code).
* m88k suppport code for librthread.miod2005-12-232-0/+99
|
* vax support bits for librthread (need the child_return() fix just commited).miod2005-12-232-0/+111
|
* m68k support code for librthread; atomic lock routine borrowed from themiod2005-12-232-0/+106
| | | | existing libpthread code.
* for reasons that do not make any sense whatsoever, _rthread_alloc_stacktedu2005-12-231-9/+9
| | | | must be called with the thread_lock held, or we crash in rfork_thread
* add a missing underscore to the function name rthread_tls_destructors().brad2005-12-221-2/+2
|
* more consistently use _rthread prefix for all not meant to be exportedtedu2005-12-224-25/+25
| | | | interfaces that aren't static, and a few that are but which will change
* change init code to handle failure. (actually, make it impossible to fail,tedu2005-12-221-13/+14
| | | | | but still have the callers check for good measure). prompted by miod "err() in a library???"
* Bad commit, breaks hppa64. Prompted by deraadt@marco2005-12-221-3/+2
|
* Align hppa stack to 64 bytes.marco2005-12-211-2/+3
| | | | ok tedu
* make alloc_stack take an optional base, preparation for stack attributestedu2005-12-211-7/+16
| | | | deal with machines that have upside down stacks
* check a few remaining mallocs for failure, along with mmap and rforktedu2005-12-211-4/+41
| | | | started by miod
* Fix hppa ldcw alignment issue.marco2005-12-192-7/+19
| | | | | Help deraadt, tedu, kettenis Ok tedu, kettenis
* fix rev 1.9brad2005-12-191-2/+2
| | | | pthread_concurrency -> pthread_setconcurrency
* this file didn't exist in 2004, so copyright must be 2005tedu2005-12-191-2/+2
|
* update copyright to 2005tedu2005-12-196-12/+12
|
* add pthread_get/set_concurrency (useless for now)tedu2005-12-193-4/+56
| | | | add pthread_get/set_stack[addr] (info not used yet)
* sanity check for key_delete was missing !tedu2005-12-191-2/+2
|
* initialize all spinlocks to _SPINLOCK_UNLOCKEDtedu2005-12-183-6/+12
|
* sure it is not perfect, but at least we can compile rthreads on hppa.marco2005-12-171-0/+30
| | | | ok deraadt@
* boolshitmickey2005-12-161-30/+0
|
* My email address changed quite a while ago...drahn2005-12-141-2/+2
|
* Initial versions of arm code, in-tree development (not yet working).drahn2005-12-142-0/+89
|
* Add locking primitive for hppa. ok kettenis@marco2005-12-141-0/+30
|
* all is made clear: pthread_cond_timedwait takes absolute timeoutstedu2005-12-141-3/+17
|
* add pthread_cleanup_push and pthread_cleanup_poptedu2005-12-142-2/+47
|
* add pthread_kill (just kill(2) really)tedu2005-12-141-1/+7
|