]> git.puffer.fish Git - matthieu/frr.git/commit
Replace lists with arrays to store read and write threads
authorDenil Vira <denil@cumulusnetworks.com>
Tue, 11 Aug 2015 20:14:40 +0000 (13:14 -0700)
committerDenil Vira <denil@cumulusnetworks.com>
Tue, 11 Aug 2015 20:14:40 +0000 (13:14 -0700)
commit308d14aed909f6cfa9fb41d6db38b6418d9c76fc
treeea9ee41d3715b4bc48f8d2c25cadff3a64148b6b
parent610f23cfff4f323a8a82657ff670187ad714a0fb
Replace lists with arrays to store read and write threads

Ticket : CM-6300
Reviewed by : CCR-3049
Testing : Manual

With arrays, a thread corresponding to given fd is looked up in constant time
versus the linear time taken for list traversals.
lib/thread.c
lib/thread.h