summaryrefslogtreecommitdiffstats
path: root/lib/librthread/rthread_attr.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove pthread_suspend* and related functions. This is part of thekurt2012-03-221-8/+1
| | | | rthreads major library bump from last night. okay kettenis@
* Clean up unnecessary prototypes. Pointed out by brad@guenther2012-03-201-7/+1
|
* fix check when setting the contention scope. harmless atm but still wrong.fgsch2012-03-021-2/+2
| | | | guenther@ ok.
* Fix problems revealed by regress/lib/libpthread/stack/stack.cguenther2012-02-191-11/+8
|
* Validate in pthread_attr_set{scope,sched{param,policy},inheritsched}()guenther2012-02-191-2/+4
| | | | the requested new value
* Fix previous commit: _rthread_init() was static.guenther2012-02-181-12/+18
| | | | Improve consistency of error naming
* Before using _thread_pagesize, make sure _rthread_init() has been calledguenther2012-02-181-1/+5
|
* Fix the handling of the stackaddr, stacksize, and guardsize attributes:guenther2012-02-181-25/+14
| | | | | | | | | | | 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@
* Initialize the scope, policy, and inherit members in pthread_attr_init()guenther2012-02-181-1/+4
| | | | | | so that their pthread_attr_get* don't return bogus values. issue noted and tested by aja@
* Move <machine/spinlock.h> into rthread.h; strip out unnecessary #includesguenther2011-11-061-10/+1
|
* use calloc() instead of malloc() and memset()kevlo2008-10-131-3/+2
| | | | "look good" tedu@
* Remove redundant mprotect() calls (we're unmapping the region anyway)otto2006-01-051-2/+12
| | | | and check user stack for proper alignment. ok tedu@ marc@
* add -Wstrict-prototypes -Wmissing-prototypes -Wsign-comparemarc2006-01-051-1/+8
| | | | | | Minor tweaks to compile with the above, primarily in fixing the conflicts between semaphore.h and rthread.h "i like the additional warnings" tedu@
* allow threads to be created in a detached statemarc2006-01-041-4/+9
| | | | | do not allow a join to a detached thread "it looks good" otto@
* thread stack handling changes. Add guard zones and allow stackmarc2006-01-011-4/+45
| | | | | | | | 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@
* Implement suspend/resume and creation of initially suspended threads.otto2005-12-311-1/+9
| | | | | With this, java seems to be operational. Also make threads_ready non-static, which is needed for an upcoming diff. ok tedu@
* update copyright to 2005tedu2005-12-191-2/+2
|
* add pthread_get/set_concurrency (useless for now)tedu2005-12-191-2/+36
| | | | add pthread_get/set_stack[addr] (info not used yet)
* add userland thread library. incomplete, but functionaltedu2005-12-031-0/+109