diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-22 23:54:08 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-22 23:54:52 +0200 |
commit | dd8df005220efb3425188b25c65e1281bb77d345 (patch) | |
tree | 589e18db45a4e2bbd866a0ad1b043d56ff26d308 | |
parent | a3e3a267f592ef72c0333ee2072e216f2b85aefd (diff) | |
download | gnumach-dd8df005220efb3425188b25c65e1281bb77d345.tar.gz gnumach-dd8df005220efb3425188b25c65e1281bb77d345.tar.bz2 gnumach-dd8df005220efb3425188b25c65e1281bb77d345.zip |
eventcount: Fix locking thread while calling thread_setrun
-rw-r--r-- | kern/eventcount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/eventcount.c b/kern/eventcount.c index 4dda5186..1cbc15a2 100644 --- a/kern/eventcount.c +++ b/kern/eventcount.c @@ -260,12 +260,12 @@ evc_signal(evc_t ev) * on run queue. */ thread->state = (state &~ TH_WAIT) | TH_RUN; - thread_unlock(thread); #if NCPUS > 1 thread_setrun(thread, TRUE); #else simpler_thread_setrun(thread, TRUE); #endif + thread_unlock(thread); break; case TH_RUN | TH_WAIT: |