summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_kern.c
Commit message (Collapse)AuthorAgeFilesLines
* The libthr code makes use of higher-level primitives (pthread_mutex_t andmtm2003-05-251-0/+13
| | | | | | | | | | | | | pthread_cond_t) internaly in addition to the low-level spinlock_t. The garbage collector mutex and condition variable are two such examples. This might lead to critical sections nested within critical sections. Implement a reference counting mechanism so that signals are masked only on the first entry and unmasked on the last exit. I'm not sure I like the idea of nested critical sections, but if the library is going to use the pthread primitives it might be necessary. Approved by: re/blanket libthr
* EDOOFUSmtm2003-05-231-10/+2
| | | | | | | | Prevent one thread from messing up another thread's saved signal mask by saving it in struct pthread instead of leaving it as a global variable. D'oh! Approved by: re/blanket libthr
* Make WARNS2 clean. The fixes mostly included:mtm2003-05-231-1/+1
| | | | | | | | o removed unused variables o explicit inclusion of header files o prototypes for externally defined functions Approved by: re/blanket libthr
* msg1mtm2003-05-121-0/+50
|
* 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.
* - Don't drop and reacquire giant in thread_suspend(). Change callers to dojeff2003-04-011-38/+4
| | | | | this manually. This will facilitate the unrolling of giant. - Don't allow giant to recurse anymore. This should never happen.
* - Add libthr but don't hook it up to the regular build yet. This is anjeff2003-04-011-0/+188
adaptation of libc_r for the thr system call interface. This is beta quality code.
OpenPOWER on IntegriCloud