Being able to send certain jobs to certain threads
Opened this issue · 0 comments
GoogleCodeExporter commented
I think it would be very useful if the job manager could have an array of
different queues, and each thread could choose which queues it can get
jobs from. That way it is possible to
1. create jobs that go to a specific thread (useful if all access to a
certain resource (like a DirectX device) have to come from the same
thread.)
2. create jobs that stay away from a specific thread (if you are running a
game that needs to execute threads, but is doing background loading and
decompression, you can allow maybe half of the threads to do loading
tasks, but make sure that half of the threads are reserved for main game
loop.
3. create multiple task priorities
Original issue reported on code.google.com by Shanni...@gmail.com
on 5 Mar 2009 at 4:25