summaryrefslogtreecommitdiffstats
path: root/lib/librthread/rthread_np.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - Don't include guard pages in the stack size.kurt2013-03-311-7/+4
| | | | | | From Christian Schulte (cs at schulte.it) - Use stack->sp instead of recalculating it. From guenther@ okay guenther@
* Fix the handling of the stackaddr, stacksize, and guardsize attributes:guenther2012-02-181-10/+7
| | | | | | | | | | | don't try to merge values, round the sizes separately, and don't try to unmap application-supplied stacks. Copy from uthread the caching of default-sized stacks. Have pthread_attr_init() and pthread_create() get the default attributes from staticly allocated pthread_attr_t. Cache the pagesize in _rthread_init() and provide a macro for rounding to it based on suggestions from kettenis@ and tedu@, ok kettenis@
* pthread_self() may be much cheaper and never more expensive than getthrid()guenther2011-12-281-2/+2
| | | | so prefer it for identifying the current thread
* Report the correct stack size and top for the primordial thread inkurt2007-07-081-16/+21
| | | | pthread_stackseg_np(). With input and okay marc@
* make rthreads compile againhenning2006-04-121-2/+2
| | | | pthreads header changed, char * -> const char *
* Nicer implementation of pthread_main_np(), which avoids the spinlock.otto2006-01-011-7/+2
| | | | ok tedu@ marc@
* use queue.h macros for thread house keeping; make some vars non-staticotto2005-12-301-3/+1
| | | | and fix a bug in thread creation error path. ok tedu@
* Put the existing _np functions into separate file; introduceotto2005-12-291-0/+99
pthread_stackseg_np(), from existing pthread lib. discussed with tedu@ ok marc@