summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_create.c
Commit message (Collapse)AuthorAgeFilesLines
* Move the initialization of thread priority to a common function.mtm2004-02-181-1/+0
|
* Preparations to make libthr work in multi-threaded fork()ing applications.mtm2003-12-261-24/+1
| | | | | | | | | | | | | o Remove some code duplication between _thread_init(), which is run once to initialize libthr and the intitial thread, and pthread_create(), which initializes newly created threads, into a new function called from both places: init_td_common() o Move initialization of certain parts of libthr into a separate function. These include: - Active threads list and it's lock - Dead threads list and it's lock & condition variable - Naming and insertion of the initial thread into the active threads list.
* When creating a pthread in the suspended state their were twomtm2003-12-151-2/+4
| | | | | | | | problems: (1) The wrong flag was being checked for in the attribute (2) The pthread's state was not being set to indicate it was suspended. Noticed by: Igor Sysoev <is@rambler-co.ru>
* It's unnecessary to lock the thread during creation. Simply extendmtm2003-05-291-5/+2
| | | | | | the scope of the active thread list lock. Approved by: re/jhb
* Decouple the thread stack [de]allocating functions from the 'dead threads list'mtm2003-05-261-3/+2
| | | | | | | lock. It's not really necessary and we don't need the added complexity or potential for deadlocks. Approved by: re/blanket libthr
* Return gracefully, rather than aborting, when the maximum concurrentmtm2003-05-251-1/+12
| | | | | | threads per process has been reached. Return EAGAIN, as per spec. Approved by: re/blanket libthr
* Part of the last patch.mtm2003-05-251-7/+7
| | | | | | | Modify the thread creation and thread searching routine to lock the thread lists with the new locks instead of GIANT_LOCK. Approved by: re/blanket libthr
* Make WARNS2 clean. The fixes mostly included:mtm2003-05-231-1/+0
| | | | | | | | o removed unused variables o explicit inclusion of header files o prototypes for externally defined functions Approved by: re/blanket libthr
* Re-enable the garbage collector thread in anticipation of furthermtm2003-05-211-2/+0
| | | | | | | locking work. I can't see anything obviously wrong with it (other than the need to update the locking). Approved by: markm/mentor, re/blanket libthr
* Fix build breakage (on ia64) caused by a missing file descriptor tomarcel2003-04-201-1/+1
| | | | _thread_printf(). Use STDERR_FILENO as the file descriptor.
* - Pass a ucontext_t to _set_curthread. If non-NULL the new thread is setjake2003-04-031-4/+4
| | | | | | | | as curthread in the new context, so that it will be set automatically when the thread is switched to. This fixes a race where we'd run for a little while with curthread unset in _thread_start. Reviewed by: jeff
* - Define curthread as _get_curthread() and remove all direct calls tojeff2003-04-021-12/+4
| | | | | | | _get_curthread(). This is similar to the kernel's curthread. Doing this saves stack overhead and is more convenient to the programmer. - Pass the pointer to the newly created thread to _thread_init(). - Remove _get_curthread_slow().
* - Add libthr but don't hook it up to the regular build yet. This is anjeff2003-04-011-0/+228
adaptation of libc_r for the thr system call interface. This is beta quality code.
OpenPOWER on IntegriCloud