Performance improvement
This commit is contained in:
@ -479,7 +479,7 @@ DCB *zombies = NULL;
|
|||||||
* and leave it in the queue.
|
* and leave it in the queue.
|
||||||
* If the DCB was not already in the queue then it was
|
* If the DCB was not already in the queue then it was
|
||||||
* idle and is added to the queue to process after
|
* idle and is added to the queue to process after
|
||||||
* setting the eent bits.
|
* setting the event bits.
|
||||||
*/
|
*/
|
||||||
for (i = 0; i < nfds; i++)
|
for (i = 0; i < nfds; i++)
|
||||||
{
|
{
|
||||||
@ -517,11 +517,17 @@ DCB *zombies = NULL;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If there was nothing to process then process the zombie queue
|
||||||
|
*/
|
||||||
|
if (process_pollq(thread_id) == 0)
|
||||||
|
{
|
||||||
if (thread_data)
|
if (thread_data)
|
||||||
{
|
{
|
||||||
thread_data[thread_id].state = THREAD_ZPROCESSING;
|
thread_data[thread_id].state = THREAD_ZPROCESSING;
|
||||||
}
|
}
|
||||||
zombies = dcb_process_zombies(thread_id);
|
zombies = dcb_process_zombies(thread_id);
|
||||||
|
}
|
||||||
|
|
||||||
if (do_shutdown)
|
if (do_shutdown)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user