Commit de3d07d13b44182fe9cb03e37621a50e804e0aaa

Con Kolivas 2011-07-03T22:14:32

Make the next work item queue 2/3 of the way through the work on the current work item. Load the first queued extra work in the main function to avoid having a once-off variable in get_work(). Load an extra set of work for each function in advance once a longpoll is detected since every thread will need to get new work. Discard requests with a separate function to ensure the right number is always queued.