[Bug 209233] [patch] pthread_suspend_all_np races with check_suspend
| Newsgroups | gmane.os.freebsd.devel.threading |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209233 --- Comment #3 from Konstantin Belousov <[email protected]> --- (In reply to Lawrence Esswood from comment #2) Yes, my intent is to guarantee that the THR_FLAGS_SUSPENDED is never left dandling, since we are not supposed to distinguish between previous and current suspension in suspend_common(). Then, why not simply clear THR_FLAGS_SUSPENDED in resume_common() ? We apparently do not care how much thread moved ahead returning from check_suspend(), and the function unblocks SIGCANCEL only after it is ready to next suspend. Could you provide a test case for the problem ? -- 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]"