Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
OskarS
81 days ago
|
parent
|
context
|
favorite
| on:
How to stop Linux threads cleanly
Feel free to read the article before commenting.
f1shy
81 days ago
[–]
I’ve read it, and I found nothing to justify that piece of code. Can you please explain?
bartvk
81 days ago
|
parent
[–]
The while loop surrounds the whole thread, which does multiple tasks. The conditional is there to surround some work completing in a reasonable time. That's how I understood, at least.
f1shy
81 days ago
|
root
|
parent
[–]
Does not seem so clear to me. If so it could be stated with more pseudo code. Also the eventual need for multiple exit points…
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: