]> git.kaiwu.me - nginx.git/commit
Thread pools: fixed the waiting tasks accounting.
authorRuslan Ermilov <ru@nginx.com>
Thu, 19 Mar 2015 10:00:48 +0000 (13:00 +0300)
committerRuslan Ermilov <ru@nginx.com>
Thu, 19 Mar 2015 10:00:48 +0000 (13:00 +0300)
commitafe1fcffaae50a0b56555635c9b4debba0ee72df
tree4b7f29ce1f38d1d06e1b335f41859082a7996e7a
parent20d07074e3d1cd9069fd786aa4861a51a44f45b5
Thread pools: fixed the waiting tasks accounting.

Behave like POSIX semaphores.  If N worker threads are waiting for tasks,
at least that number of tasks should be allowed to be put into the queue.
src/core/ngx_thread_pool.c