|
2012-09-13
| ||
| 18:23 | • Closed ticket [3534581fff]: tpool::post -nowait still waits plus 6 other cha... artifact: 4143e3cbaa user: vasiljevic | |
|
2012-06-12
| ||
| 20:33 | • Ticket [3534581fff]: 5 changes artifact: 2afbbbba50 user: vasiljevic | |
| 20:07 | • Ticket [3534581fff]: 4 changes artifact: ed9bca621c user: tomkiti | |
| 20:07 | • Add attachment postNowaitBug.tcl to ticket [3534581fffffffff|3534581fff... artifact: 66df5e0f6d user: tomkiti | |
| 13:06 | • New ticket [3534581fff] tpool::post -nowait still waits. artifact: 0fc76a8be7 user: tomkiti | |
tpool::post -nowait still waits
Closed / Accepted3534581fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2012-06-12 13:06:58
The -nowait option to tpool::post appears to not work. It is supposed to post a job to the job queue immediately and return, however it seems to wait for a thread to become idle before returning.
tomkitiplain2012-06-12 20:07:03
File Added - 445856: postNowaitBug.tcl
vasiljevicplain2012-06-12 20:33:28
You are right. There is a bug there. Currently. if -nowait option to thread::post is specified AND there are no workers for the pool configured then we spin-off a new worker and wait for it to catch-up. BUT if there ARE some workers yet they are all busy then we wait for first to become free. Instead we should simply spin-off new worker if none configured OR just post the job ticket and return w/o waiting for any worker to become free.
vasiljevicplain2012-09-13 18:23:00
allow_comments - 1 This has been addressed in 2.7
Log in (anonymous is fine) to add a comment.
Attachments:
- postNowaitBug.tcl [download] added by tomkiti on 2012-06-12 20:07:02. [details]