summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libthr/thread/thr_fork.c4
-rw-r--r--lib/libthr/thread/thr_spinlock.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libthr/thread/thr_fork.c b/lib/libthr/thread/thr_fork.c
index 5e63e6eec40b..8d969cbf9718 100644
--- a/lib/libthr/thread/thr_fork.c
+++ b/lib/libthr/thread/thr_fork.c
@@ -219,9 +219,9 @@ __thr_fork(void)
_thr_rwl_rdlock(&_thr_atfork_lock);
if (was_threaded) {
- __isthreaded = 1;
+ _thr_setthreaded(1);
_malloc_postfork();
- __isthreaded = 0;
+ _thr_setthreaded(0);
}
/* Ready to continue, unblock signals. */
diff --git a/lib/libthr/thread/thr_spinlock.c b/lib/libthr/thread/thr_spinlock.c
index 8680a7229018..42077ce5d447 100644
--- a/lib/libthr/thread/thr_spinlock.c
+++ b/lib/libthr/thread/thr_spinlock.c
@@ -58,7 +58,7 @@ static int initialized;
static void init_spinlock(spinlock_t *lck);
/*
- * These are for compatability only. Spinlocks of this type
+ * These are for compatibility only. Spinlocks of this type
* are deprecated.
*/
@@ -76,7 +76,7 @@ __thr_spinlock(spinlock_t *lck)
{
struct spinlock_extra *_extra;
- if (!__isthreaded)
+ if (!_thr_isthreaded())
PANIC("Spinlock called when not threaded.");
if (!initialized)
PANIC("Spinlocks not initialized.");