diff options
author | Eric van Gyzen <vangyzen@FreeBSD.org> | 2018-11-30 03:02:49 +0000 |
---|---|---|
committer | Eric van Gyzen <vangyzen@FreeBSD.org> | 2018-11-30 03:02:49 +0000 |
commit | dbb1c64e82a9da2805814f17307fcf7cc3f55bd4 (patch) | |
tree | 85f701edba5c24c29370dcf7a646d8afae956639 | |
parent | ad8c236b28bc5cb6efac2321c439ab761e46b899 (diff) |
Notes
-rw-r--r-- | lib/libthr/thread/thr_fork.c | 4 | ||||
-rw-r--r-- | lib/libthr/thread/thr_spinlock.c | 4 |
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."); |