mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
Use the universal 'threaded process' flag rather than the
specific tests for different threading systems. MFC after: 1 week
This commit is contained in:
parent
3a67cb3bb1
commit
2179a22cc7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135780
|
@ -1043,7 +1043,7 @@ thread_sleep_check(struct thread *td)
|
|||
|
||||
p = td->td_proc;
|
||||
mtx_assert(&sched_lock, MA_OWNED);
|
||||
if (p->p_flag & P_SA || p->p_numthreads > 1) {
|
||||
if (p->p_flag & P_HADTHREADS) {
|
||||
if ((p->p_flag & P_SINGLE_EXIT) && p->p_singlethread != td)
|
||||
return (EINTR);
|
||||
if (td->td_flags & TDF_INTERRUPT)
|
||||
|
|
Loading…
Reference in a new issue