|
2026-10-22
| ||
| 17:19 | • Ticket [3407860fff] thread::exit flaws status still Closed with 3 other chan... artifact: 2a2e6bbecd user: serhiy.storchaka | |
|
2026-10-21
| ||
| 09:59 | • Closed ticket [3407860fff]. artifact: 1af4433ecb user: serhiy.storchaka | |
|
2011-11-21
| ||
| 14:19 | • Ticket [3407860fff]: 4 changes artifact: 0d92d01cd9 user: mistachkin | |
|
2011-09-11
| ||
| 20:50 | • New ticket [3407860fff]. artifact: a1532f4b52 user: dgp | |
thread::exit flaws
Closed / Fixed3407860fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 41 days ago
Descriptionplain2011-09-11 20:50:07
Perhaps there's no value fixing a command that's marked deprecated, but... [thread::exit] is documented to take no arguments, but that's not checked. Any number of arguments are accepted and ignored without error. It would seem to be more valuable, both in utility and in parallel behavior with [::exit] for the command [thread::exit] to accept one optional argument, an integer "exit code" for the thread. Without such an argument [thread::exit] always declares the thread exit code to be 666, and [thread::join] returns that value as documented, when it is used. But what value is that? Returning a value that never changes?
mistachkinplain2011-11-21 14:19:37
After careful review of the thread package code, I agree that this command should be changed in the way described by dgp.
serhiy.storchakawiki2026-10-21 09:59:44
Fixed in Thread 2.8.0 by 0839286864: thread::exit now accepts an optional exit status (default 666), which thread::join returns, and rejects extra arguments.
serhiy.storchaka Ticket [3407860fff]: 3 changes
[History diff]2026-10-22 17:19:29
Log in (anonymous is fine) to add a comment.