summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_concurrency.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2003-08-05 22:46:00 +0000
committerdeischen <deischen@FreeBSD.org>2003-08-05 22:46:00 +0000
commit73db9e759e57e01346011c961658790abf22719c (patch)
tree72d4a76c0fc38dbe53f86f2219914d854a838dbb /lib/libpthread/thread/thr_concurrency.c
parente6b31b28140188d90a9dd49e4543af529f64843f (diff)
downloadFreeBSD-src-73db9e759e57e01346011c961658790abf22719c.zip
FreeBSD-src-73db9e759e57e01346011c961658790abf22719c.tar.gz
Rethink the MD interfaces for libpthread to account for
archs that can (or are required to) have per-thread registers. Tested on i386, amd64; marcel is testing on ia64 and will have some follow-up commits. Reviewed by: davidxu
Diffstat (limited to 'lib/libpthread/thread/thr_concurrency.c')
-rw-r--r--lib/libpthread/thread/thr_concurrency.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_concurrency.c b/lib/libpthread/thread/thr_concurrency.c
index 8eaa6c1..694255a 100644
--- a/lib/libpthread/thread/thr_concurrency.c
+++ b/lib/libpthread/thread/thr_concurrency.c
@@ -105,7 +105,7 @@ _thr_setconcurrency(int new_level)
newkse->k_kseg->kg_ksecount++;
newkse->k_flags |= KF_STARTED;
KSE_SCHED_UNLOCK(curthread->kse, newkse->k_kseg);
- if (kse_create(&newkse->k_mbx, 0) != 0) {
+ if (kse_create(&newkse->k_kcb->kcb_kmbx, 0) != 0) {
KSE_SCHED_LOCK(curthread->kse, newkse->k_kseg);
TAILQ_REMOVE(&newkse->k_kseg->kg_kseq,
newkse, k_kgqe);
OpenPOWER on IntegriCloud