From 8cbb5ce67318a92b9504e120b732fb3b549c6023 Mon Sep 17 00:00:00 2001 From: davidxu Date: Thu, 17 Jul 2003 23:02:30 +0000 Subject: o Eliminate upcall for PTHREAD_SYSTEM_SCOPE thread, now it is system bound thread and when it is blocked, no upcall is generated. o Add ability to libkse to allow it run in pure 1:1 threading mode, defining SYSTEM_SCOPE_ONLY in Makefile can turn on this option. o Eliminate code for installing dummy signal handler for sigwait call. o Add hash table to find thread. Reviewed by: deischen --- lib/libpthread/thread/thr_concurrency.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libpthread/thread/thr_concurrency.c') diff --git a/lib/libpthread/thread/thr_concurrency.c b/lib/libpthread/thread/thr_concurrency.c index 485c9a1..a5393c0 100644 --- a/lib/libpthread/thread/thr_concurrency.c +++ b/lib/libpthread/thread/thr_concurrency.c @@ -89,7 +89,7 @@ _thr_setconcurrency(int new_level) /* Race condition, but so what. */ kse_count = _kse_initial->k_kseg->kg_ksecount; for (i = kse_count; i < new_level; i++) { - newkse = _kse_alloc(curthread); + newkse = _kse_alloc(curthread, 0); if (newkse == NULL) { DBG_MSG("Can't alloc new KSE.\n"); ret = EAGAIN; -- cgit v1.1