]> git.puffer.fish Git - mirror/frr.git/commit
lib: Refactore thread_process_fd
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 4 Mar 2016 03:52:12 +0000 (03:52 +0000)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 4 Mar 2016 17:33:56 +0000 (12:33 -0500)
commit5d4ccd4e85930aea4d212e2c2276a6879fbd050a
treedb0c59217946d8bc256ac851184b4c194c87e11b
parent8dadcae7301a2b38cbf2f539cc9c727d5477edac
lib: Refactore thread_process_fd

thread_process_fd is looping over the read and write
fd's separately.  There is no need to do this individually.
loop over both the read and write fdset's at the same time.
This will improve select processing performance, especially
for large data sets.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/thread.c