]> git.puffer.fish Git - matthieu/frr.git/commit
lib: mt-safe cancel, round deux
authorQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 9 Jun 2017 03:40:27 +0000 (03:40 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 16 Jun 2017 19:56:58 +0000 (19:56 +0000)
commit8797240ea4de5163f8633c1c561edbfd8ecf1c2a
treee9385194d4e449149400bce366055ee243d3e3bf
parent63ccb9cb12b559be539bc406f1b9ffc5cb3ac16a
lib: mt-safe cancel, round deux

* Update pollfds copy as well as the original
* Keep array count for copy in thread_master
* Remove last remnants of POLLHUP in .events field
* Remove unused snmpcount (lolwut)
* Improve docs
* Add missing do_thread_cancel() call in thread_cancel_event()
* Change thread_fetch() to always enter poll() to avoid starving i/o
* Remember to free up cancel_req when destroying thread_master
* Fix dereference of null pointer
* Fix dead store to timeval
* Fix missing condition for condition variable :-)

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/thread.c
lib/thread.h