summaryrefslogtreecommitdiffstats
path: root/lib/libthr
Commit message (Collapse)AuthorAgeFilesLines
* Add support for ia64.marcel2003-04-202-0/+64
| | | | | | | | | | | Note that the tp register (r13) is reserved as the TLS pointer in the same way that that gp register (r1) is reserved as the global pointer. This implementation uses the tp register to point to the thread structure used by the threads implementation. This is not in violation with the runtime specification provided the TLS is a fixed distance from the thread structure. This is only an issue when code used the __thread keyword to create TLS. This is not supported at the moment.
* Use STDERR_FILENO as the file descriptor passed to _thread_printf()marcel2003-04-201-4/+7
| | | | instead of 0 (ie stdin). Writing to stdin may not be possible.
* Fix build breakage (on ia64) caused by a missing file descriptor tomarcel2003-04-202-2/+2
| | | | _thread_printf(). Use STDERR_FILENO as the file descriptor.
* Add stub implementations of pthread_[gs]etconcurrency to libc_r andjdp2003-04-202-0/+61
| | | | | | | | | libthr. No changes were made to libpthread by request of deischen, who will soon commit a real implementation for that library. PR: standards/50848 Submitted by: Sergey A. Osokin <osa@freebsd.org.ru> MFC after: 1 week
* - Pass a ucontext_t to _set_curthread. If non-NULL the new thread is setjake2003-04-035-11/+18
| | | | | | | | 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
* - Don't overrun the ldt buffer.jeff2003-04-021-2/+2
| | | | Submitted by: gordan@freebsd.org
* Implement _get_curthread and _set_curthread. This is especially easy.jake2003-04-022-0/+58
|
* - 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().
* Add MD makefile.jake2003-04-011-0/+3
|
* - 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.
* - Adjust the makefiles so we have a per architecture makefile.jeff2003-04-013-1/+7
|
* - Commit the forgotten libthr/sys bits.jeff2003-04-012-0/+64
|
* - Add libthr but don't hook it up to the regular build yet. This is anjeff2003-04-0149-0/+7686
adaptation of libc_r for the thr system call interface. This is beta quality code.
OpenPOWER on IntegriCloud