mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Doh! Lock the thread passed in by the caller, not the current thread.
This commit is contained in:
parent
8f0387a278
commit
099fe19901
1 changed files with 2 additions and 2 deletions
|
|
@ -49,12 +49,12 @@ _pthread_resume_np(pthread_t thread)
|
|||
|
||||
/* Find the thread in the list of active threads: */
|
||||
if ((ret = _find_thread(thread)) == 0) {
|
||||
_thread_critical_enter(curthread);
|
||||
_thread_critical_enter(thread);
|
||||
|
||||
if ((thread->flags & PTHREAD_FLAGS_SUSPENDED) != 0)
|
||||
resume_common(thread);
|
||||
|
||||
_thread_critical_exit(curthread);
|
||||
_thread_critical_exit(thread);
|
||||
}
|
||||
return (ret);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue