We cannot actually rely on a status (finish) before thr_exit. The
thread needs the kernel signal status=1 to userspace. Before that,
any tryjoin fails. The previous one works as we sleep 1 and should be
enough for normal case.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 78328 Build 75211: arc lint + arc unit
Event Timeline
Comment Actions
You could query the kernel to see the state of the thread using kinfo_proc().
Somewhat curiously, I thought about adding an API to query the list of the threads for the current process.