Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Don't call pthread_self()->tid when getthrid() will do fine. | 2006-01-02 | 1 | -2/+2 | ||
| | ||||||
* | thread stack handling changes. Add guard zones and allow stack | 2006-01-01 | 5 | -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. | 2006-01-01 | 1 | -7/+2 | ||
| | | | | ok tedu@ marc@ | |||||
* | Add "print debug foo" function safe to use in signal handlers, example: | 2005-12-31 | 3 | -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 must | 2005-12-31 | 1 | -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. | 2005-12-31 | 1 | -1/+9 | ||
| | | | | ok otto@ | |||||
* | Implement suspend/resume and creation of initially suspended threads. | 2005-12-31 | 4 | -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@ | 2005-12-30 | 1 | -1/+4 | ||
| | ||||||
* | use queue.h macros for thread house keeping; make some vars non-static | 2005-12-30 | 3 | -25/+28 | ||
| | | | | and fix a bug in thread creation error path. ok tedu@ | |||||
* | __aligned__ isn't really necessary on the struct, an aligned member | 2005-12-30 | 1 | -2/+2 | ||
| | | | | will make the right thing happen. verified by kettenis and drahn | |||||
* | prototype all the thread syscalls in rthread.h for now. | 2005-12-30 | 5 | -20/+17 | ||
| | | | | update for new thrwakeup that takes a count argument | |||||
* | Put the existing _np functions into separate file; introduce | 2005-12-29 | 3 | -28/+106 | ||
| | | | | | pthread_stackseg_np(), from existing pthread lib. discussed with tedu@ ok marc@ | |||||
* | implement pthread_main_np(); ok tedu@ | 2005-12-29 | 1 | -1/+13 | ||
| | ||||||
* | the story in pthread_rwlockattr_destory() shoudl be destroyed | 2005-12-29 | 1 | -2/+2 | ||
| | ||||||
* | remainder of the hppa support code for librthread. ok&help kettenis@ mickey@ | 2005-12-28 | 1 | -0/+65 | ||
| | ||||||
* | sparc64 support code for librthread (_atomic_lock yanked from existing | 2005-12-25 | 2 | -0/+113 | ||
| | | | | libpthread code). | |||||
* | sparc support code for librthread (_atomic_lock yanked from existing | 2005-12-25 | 2 | -0/+114 | ||
| | | | | libpthread code). | |||||
* | remove silly alpha comment | 2005-12-25 | 1 | -2/+2 | ||
| | ||||||
* | child calls threxit after thread return | 2005-12-25 | 1 | -2/+2 | ||
| | ||||||
* | put the error handling jump code back in from brad/marco | 2005-12-25 | 1 | -13/+2 | ||
| | | | | call right sycall after threadfn return | |||||
* | if the start routine returns (never happens), call the right threxit syscall | 2005-12-25 | 1 | -6/+2 | ||
| | ||||||
* | A better implementation which does not use the caller's stack and thus is not | 2005-12-25 | 1 | -35/+42 | ||
| | | | | raceable. | |||||
* | add rfork_thread for alpha, from kudo takashi | 2005-12-25 | 1 | -0/+50 | ||
| | ||||||
* | mips64 support code for librthread (_atomic_lock yanked from existing | 2005-12-24 | 2 | -0/+117 | ||
| | | | | libpthread code). | |||||
* | m88k suppport code for librthread. | 2005-12-23 | 2 | -0/+99 | ||
| | ||||||
* | vax support bits for librthread (need the child_return() fix just commited). | 2005-12-23 | 2 | -0/+111 | ||
| | ||||||
* | m68k support code for librthread; atomic lock routine borrowed from the | 2005-12-23 | 2 | -0/+106 | ||
| | | | | existing libpthread code. | |||||
* | for reasons that do not make any sense whatsoever, _rthread_alloc_stack | 2005-12-23 | 1 | -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(). | 2005-12-22 | 1 | -2/+2 | ||
| | ||||||
* | more consistently use _rthread prefix for all not meant to be exported | 2005-12-22 | 4 | -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, | 2005-12-22 | 1 | -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@ | 2005-12-22 | 1 | -3/+2 | ||
| | ||||||
* | Align hppa stack to 64 bytes. | 2005-12-21 | 1 | -2/+3 | ||
| | | | | ok tedu | |||||
* | make alloc_stack take an optional base, preparation for stack attributes | 2005-12-21 | 1 | -7/+16 | ||
| | | | | deal with machines that have upside down stacks | |||||
* | check a few remaining mallocs for failure, along with mmap and rfork | 2005-12-21 | 1 | -4/+41 | ||
| | | | | started by miod | |||||
* | Fix hppa ldcw alignment issue. | 2005-12-19 | 2 | -7/+19 | ||
| | | | | | Help deraadt, tedu, kettenis Ok tedu, kettenis | |||||
* | fix rev 1.9 | 2005-12-19 | 1 | -2/+2 | ||
| | | | | pthread_concurrency -> pthread_setconcurrency | |||||
* | this file didn't exist in 2004, so copyright must be 2005 | 2005-12-19 | 1 | -2/+2 | ||
| | ||||||
* | update copyright to 2005 | 2005-12-19 | 6 | -12/+12 | ||
| | ||||||
* | add pthread_get/set_concurrency (useless for now) | 2005-12-19 | 3 | -4/+56 | ||
| | | | | add pthread_get/set_stack[addr] (info not used yet) | |||||
* | sanity check for key_delete was missing ! | 2005-12-19 | 1 | -2/+2 | ||
| | ||||||
* | initialize all spinlocks to _SPINLOCK_UNLOCKED | 2005-12-18 | 3 | -6/+12 | ||
| | ||||||
* | sure it is not perfect, but at least we can compile rthreads on hppa. | 2005-12-17 | 1 | -0/+30 | ||
| | | | | ok deraadt@ | |||||
* | boolshit | 2005-12-16 | 1 | -30/+0 | ||
| | ||||||
* | My email address changed quite a while ago... | 2005-12-14 | 1 | -2/+2 | ||
| | ||||||
* | Initial versions of arm code, in-tree development (not yet working). | 2005-12-14 | 2 | -0/+89 | ||
| | ||||||
* | Add locking primitive for hppa. ok kettenis@ | 2005-12-14 | 1 | -0/+30 | ||
| | ||||||
* | all is made clear: pthread_cond_timedwait takes absolute timeouts | 2005-12-14 | 1 | -3/+17 | ||
| | ||||||
* | add pthread_cleanup_push and pthread_cleanup_pop | 2005-12-14 | 2 | -2/+47 | ||
| | ||||||
* | add pthread_kill (just kill(2) really) | 2005-12-14 | 1 | -1/+7 | ||
| |