]> git.proxmox.com Git - mirror_frr.git/commit - lib/frrevent.h
Some small enhancements to thread and workqueue libraries in zebra:
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 00:58:10 +0000 (17:58 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 00:58:10 +0000 (17:58 -0700)
commit50596be0d5ff65c79060bcd858cda33a974a0dc1
tree4c5532f9924f9afc47af95d3cdfa7141e4e901c9
parent5000f21c25dd13d12c3a00b5e702d6f79685a77e
Some small enhancements to thread and workqueue libraries in zebra:

- Allow work queues to specify the yield duration for corresponding background thread
- Support using specified yield duration in thread yielding
- During work queue processing, if using a single list element with a meta-queue
  (like done in Zebra), do not exit after each element is processed, instead
  update the next-node upon a WQ_REQUEUE so that the WQ processing continues
  and is terminated by the yield logic.
- Enhance work queue debug output
lib/thread.c
lib/thread.h
lib/workqueue.c
lib/workqueue.h