[Bug 209233] [patch] pthread_suspend_all_np races with check_suspend

[email protected]
Newsgroups gmane.os.freebsd.devel.threading
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209233

--- Comment #2 from Lawrence Esswood <[email protected]> ---
(In reply to Konstantin Belousov from comment #1)

This would end up doing the same thing in the suspend logic as always setting
the NEED_SUSPEND flag, as the !(thread->flags & THR_FLAGS_SUSPENDED) check
would always be true if THR_FLAGS_NEED_SUSPEND was clear and if we insisted
that !THR_FLAGS_NEED_SUSPEND => !THR_FLAGS_SUSPENDED after a resume. The only
(observable) difference would be extra blocking in resume which we probabably
want to avoid.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.