summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread
Commit message (Collapse)AuthorAgeFilesLines
...
* - Pass a ucontext_t to _set_curthread. If non-NULL the new thread is setjake2003-04-033-7/+7
| | | | | | | | 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-0220-96/+21
| | | | | | | _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().
* - Don't drop and reacquire giant in thread_suspend(). Change callers to dojeff2003-04-013-38/+8
| | | | | this manually. This will facilitate the unrolling of giant. - Don't allow giant to recurse anymore. This should never happen.
* - Reenable setschedparam and the prioceiling code now that the mutex codejeff2003-04-012-19/+10
| | | | has been restored.
* - Restore old mutex code from libc_r. It is more standards compliant.jeff2003-04-012-205/+1364
| | | | | | | This was changed because originally we were blocking on the umtx and allowing the kernel to do the queueing. It was decided that the lib should queue and start the threads in the order it decides and the umtx code would just be used like spinlocks.
* - Add libthr but don't hook it up to the regular build yet. This is anjeff2003-04-0146-0/+7521
adaptation of libc_r for the thr system call interface. This is beta quality code.
OpenPOWER on IntegriCloud