A way of running a QRunnable in a specific thread pool and returning a
QFuture would be very nice. Either a version of
QThreadPool::start(QRunnable*, int) that returns a QFuture, or a way
of using QtConcurrent::run() with a specific thread pool.
Why? I'm thinking about threads that will have significant per-thread
state and which will be commonly be blocked waiting for an external
action. I really don't want those blocked threads to consume slots in
the global thread pool (I'd rather leave that at one thread per cpu to
handle cpu bound tasks), and ideally I'd prefer not to have to
maintain that per-thread state in every application thread, just in
those that will use it. A database access pool, to make QSqlQuery look
a bit less blocking, for example.
Cheers,
Steve
To unsubscribe - send "unsubscribe" in the subject to [EMAIL PROTECTED]