for ( tprev = &active, tcur = active;
tcur && id != tcur->id;
tprev = &tcur->next, tcur = tcur->next )
{ ; }
if ( tcur == NULL )
{
error( 0, 0,
"untimeout called for non-existent timer (%d)\n", id );
return;
}
*tprev = tcur->next;
tcur->next = free_list;
free_list = tcur;
}
Linux通过改进的epoll实现对不同超时时间的数据包(2)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:http://www.heiqu.com/af69ed9ca469f65a316c013830717ef5.html