mirror_frr/lib
Donald Sharp b3f5645df3 lib: Slight Optimization of thread handling.
This commit does these things:

1) Make thread_add_unuse own the setting of THREAD_UNUSED.
2) Move thread->hist finding to to thread_get.
   We are storing the thread->hist even when the thread
   is on the unused.  This means that we check to see
   if the funcname or func have changed and we get new
   history.  Else we've probably just retrieved the last
   unused which has the same func/funcanme.  This is
   a common practice to do THREAD_OFF/THREAD_ON in
   quick succession.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com.
2017-01-17 18:40:33 -05:00
..
.gitignore lib: add grammar_sandbox to .gitignore 2016-12-20 06:39:37 +00:00
agentx.c build: replace some hardcoding with ./configure 2016-12-20 18:18:44 +01:00
bfd.c frr: Remove HAVE_IPV6 from code base 2017-01-13 08:05:50 -05:00
bfd.h Expand #defines in command strings 2016-09-25 16:49:39 +00:00
bitfield.h Merge remote-tracking branch 'cmaster-next' into cmaster-next-releng 2016-11-19 11:58:52 +01:00
buffer.c *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
buffer.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
checksum.c lib: force local MIN/MAX macros 2016-09-23 12:12:17 -04:00
checksum.h lib: improve fletcher checksum validation 2012-10-25 10:15:58 -07:00
command_lex.l lib: parser: accept number-only word tokens 2016-12-16 20:48:31 +01:00
command_match.c bgpd, lib: fix a few scan-build catches 2016-12-20 03:26:47 +00:00
command_match.h lib, vtysh: Fix memory leaks, change cmd_element to const 2016-11-12 01:06:32 +00:00
command_parse.y lib: parser: remove startnode & sentence_root 2016-12-16 20:48:31 +01:00
command.c Merge pull request #27 from qlyoung/fix-derefs2 2017-01-06 19:36:59 -05:00
command.h lib: parser: move allowrepeat to cmd_token 2016-12-16 20:42:01 +01:00
csv.c *: Fix up licensing to be right 2016-11-18 10:14:03 -05:00
csv.h *: Fix up licensing to be right 2016-11-18 10:14:03 -05:00
distribute.c lib: Fixup 'ipv6 distribute-list ... ' cli help strings 2017-01-09 10:22:39 -05:00
distribute.h lib: Make distribute.c accepts both v4 and v6. 2016-09-26 10:52:41 -04:00
event_counter.c lib: add event_counter 2016-10-18 08:39:23 -04:00
event_counter.h lib: add event_counter 2016-10-18 08:39:23 -04:00
fifo.h lib, bgpd: Remove 'struct fifo' from lib/zebra.h 2016-09-16 21:22:30 -04:00
filter.c frr: Remove HAVE_IPV6 from code base 2017-01-13 08:05:50 -05:00
filter.h lib, bgpd, tests: Refactor FILTER_X in zebra.h 2016-08-16 11:00:22 -04:00
getopt1.c *: make sure zebra.h is always included first 2016-06-09 10:45:22 -04:00
getopt.c *: make sure zebra.h is always included first 2016-06-09 10:45:22 -04:00
getopt.h 2005-08-10 Greg Troxel <gdt@fnord.ir.bbn.com> 2005-08-10 13:20:03 +00:00
gitversion.pl build: fix minimal mixup in gitinfo suffix 2013-04-09 17:05:08 +02:00
grammar_sandbox.c lib: parser: refresh grammar_sandbox 2016-12-15 23:07:45 +01:00
grammar_sandbox.h lib: parser: refresh grammar_sandbox 2016-12-15 23:07:45 +01:00
graph.c Merge remote-tracking branch 'origin/cmaster-next' into vtysh-grammar 2016-09-20 21:17:34 -04:00
graph.h lib: parser: move allowrepeat to cmd_token 2016-12-16 20:42:01 +01:00
hash.c *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
hash.h *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
if_rmap.c lib: lib compiles 2016-09-23 21:34:33 +00:00
if_rmap.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
if.c frr: Remove HAVE_IPV6 from code base 2017-01-13 08:05:50 -05:00
if.h lib: make interface metric a uint32_t 2017-01-09 01:35:41 +00:00
imsg-buffer.c ldpd: adapt the code for Quagga 2016-09-23 09:31:09 -04:00
imsg.c ldpd: adapt the code for Quagga 2016-09-23 09:31:09 -04:00
imsg.h ldpd: copy original sources from OpenBSD (14/09/2016) 2016-09-23 09:31:05 -04:00
jhash.c Fix most compiler warnings in default GCC build. 2016-05-26 18:57:39 +00:00
jhash.h Fix arm compilation failures of sockunion_hash issues 2015-09-08 13:26:57 -07:00
json.c Merge branch 'cmaster-next' into vtysh-grammar 2016-10-21 19:49:16 +00:00
json.h *: add #include "command.h" where needed 2016-11-29 14:15:05 +01:00
keychain.c lib: remove vty->index 2016-12-09 17:36:25 +01:00
keychain.h lib: qobj: register ifaces, routemaps & keychains 2016-10-07 09:09:51 -04:00
libospf.h ospfd/ospf6d/zebra: Change interface bandwidth range and auto-cost range to 100G 2016-06-13 09:06:45 -04:00
linklist.c *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
linklist.h lib: linklist: clean up insert-before/after dups 2016-07-28 07:27:47 -04:00
log.c Merge branch 'master' into fix-proto_redistnum 2017-01-06 19:44:46 -05:00
log.h Merge remote-tracking branch 'origin/stable/2.0' 2017-01-06 09:58:21 -05:00
Makefile.am lib: Add Timer Wheel functionality 2017-01-17 18:40:25 -05:00
md5.c *: fix signedness mix-ups 2016-06-07 08:47:49 -04:00
md5.h *: fix signedness mix-ups 2016-06-07 08:47:49 -04:00
memory_vty.c build: massively remove needless checks 2016-11-15 14:23:17 +09:00
memory_vty.h lib: clean/restore memory debugging functions 2016-09-19 16:31:08 -04:00
memory.c lib: replace MIT license with ISC 2016-12-01 17:18:57 +01:00
memory.h lib: replace MIT license with ISC 2016-12-01 17:18:57 +01:00
mpls.h mpls: add support for LDP LSPs 2016-09-23 09:31:12 -04:00
network.c lib: add and use set_cloexec() 2016-11-09 13:40:05 +01:00
network.h lib: add and use set_cloexec() 2016-11-09 13:40:05 +01:00
nexthop.c Merge remote-tracking branch 'cmaster-next' into cmaster-next-releng 2016-11-28 17:35:08 +01:00
nexthop.h mpls: add support for LDP LSPs 2016-09-23 09:31:12 -04:00
ns.c Merge branch 'stable/2.0' 2016-12-05 19:48:38 +01:00
ns.h lib: convert namespace code to use red-black trees 2016-11-28 16:18:35 -02:00
openbsd-queue.h ldpd: copy original sources from OpenBSD (14/09/2016) 2016-09-23 09:31:05 -04:00
openbsd-tree.h ldpd: copy original sources from OpenBSD (14/09/2016) 2016-09-23 09:31:05 -04:00
pid_output.c build: massively remove needless checks 2016-11-15 14:23:17 +09:00
plist_int.h lib: Fix missing plist_int.h 2015-11-03 10:00:30 -08:00
plist.c frr: Remove HAVE_IPV6 from code base 2017-01-13 08:05:50 -05:00
plist.h lib: straighten out ORF prefix list support 2015-11-03 05:49:39 -08:00
pqueue.c *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
pqueue.h lib: use heap to manage timers 2014-04-22 21:17:00 +02:00
prefix.c frr: Remove HAVE_IPV6 from code base 2017-01-13 08:05:50 -05:00
prefix.h lib: Use single correct definition for prefix string buffer 2017-01-17 18:30:18 -05:00
privs.c lib: privs: always look up VTY group 2016-11-09 13:40:37 +01:00
privs.h 2005-09-29 Paul Jakma <paul.jakma@sun.com> 2005-09-29 14:39:32 +00:00
ptm_lib.c *: Fix up licensing to be right 2016-11-18 10:14:03 -05:00
ptm_lib.h *: Fix up licensing to be right 2016-11-18 10:14:03 -05:00
qobj.c bgpd: shuffle qobj_init() 2016-12-16 20:42:01 +01:00
qobj.h lib: make qobj NULL-safe/aware 2016-12-09 17:36:25 +01:00
queue.h *: fix detection and usage of sys/cdefs.h 2014-08-18 01:50:19 +02:00
route_types.pl Merge pull request #37 from LabNConsulting/working/2.0/patch-set-170102a 2017-01-03 16:44:44 +01:00
route_types.txt Merge remote-tracking branch 'origin/stable/2.0' 2017-01-06 09:58:21 -05:00
routemap.c Merge pull request #27 from qlyoung/fix-derefs2 2017-01-06 19:36:59 -05:00
routemap.h Merge branch 'cmaster-next' into vtysh-grammar 2016-10-20 16:31:49 +00:00
sigevent.c lib: dump memory stats on core 2016-09-03 11:05:51 -04:00
sigevent.h *: use array_size() helper macro 2012-10-25 10:15:59 -07:00
skiplist.c lib: add skiplist 2016-09-30 13:22:35 -04:00
skiplist.h lib: add skiplist 2016-09-30 13:22:35 -04:00
smux.c frr: Remove HAVE_IPV6 from code base 2017-01-13 08:05:50 -05:00
smux.h *: add missing includes 2016-06-07 08:50:09 -04:00
snmp.c snmp: fix warnings 2016-05-26 15:33:29 +00:00
sockopt.c frr: Remove HAVE_IPV6 from code base 2017-01-13 08:05:50 -05:00
sockopt.h frr: Remove HAVE_IPV6 from code base 2017-01-13 08:05:50 -05:00
sockunion.c frr: Remove HAVE_IPV6 from code base 2017-01-13 08:05:50 -05:00
sockunion.h frr: Remove HAVE_IPV6 from code base 2017-01-13 08:05:50 -05:00
stream.c *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
stream.h Update Traffic Engineering Support for OSPFD 2016-09-03 11:05:50 -04:00
strlcat.c lib: replace strlcpy & strlcat with glibc versions 2016-11-15 17:35:36 +09:00
strlcpy.c lib: replace strlcpy & strlcat with glibc versions 2016-11-15 17:35:36 +09:00
systemd.c quagga: Fixup startup to allow consistency between sysV and systemd 2016-04-27 16:04:48 -04:00
systemd.h quagga: Fixup startup to allow consistency between sysV and systemd 2016-04-27 16:04:48 -04:00
table.c frr: Remove HAVE_IPV6 from code base 2017-01-13 08:05:50 -05:00
table.h frr: Remove HAVE_IPV6 from code base 2017-01-13 08:05:50 -05:00
thread.c lib: Slight Optimization of thread handling. 2017-01-17 18:40:33 -05:00
thread.h *: make DEFUN installations file-local 2016-12-01 17:25:56 +01:00
vector.c *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
vector.h *: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs 2016-09-19 16:31:04 -04:00
version.h.in build: replace some hardcoding with ./configure 2016-12-20 18:18:44 +01:00
vrf.c Merge branch 'stable/2.0-for-merge' 2017-01-13 15:24:25 +01:00
vrf.h Merge branch 'queue/osr/vtysh-generic' 2016-12-05 20:04:08 +01:00
vty.c Merge branch 'master' into cleanup 2017-01-13 14:48:16 -05:00
vty.h lib: limit size of vty buffer to 4096 bytes 2017-01-13 14:37:40 +01:00
wheel.c lib: Add Timer Wheel functionality 2017-01-17 18:40:25 -05:00
wheel.h lib: Add Timer Wheel functionality 2017-01-17 18:40:25 -05:00
workqueue.c *: make DEFUN installations file-local 2016-12-01 17:25:56 +01:00
workqueue.h *: make DEFUN installations file-local 2016-12-01 17:25:56 +01:00
zassert.h Add missing GPL headers, and copyright claims that certainly apply. 2016-05-26 01:06:59 +00:00
zclient.c frr: Remove HAVE_IPV6 from code base 2017-01-13 08:05:50 -05:00
zclient.h frr: Remove HAVE_IPV6 from code base 2017-01-13 08:05:50 -05:00
zebra.h zebra: Fully decode mcast messages 2017-01-17 18:34:17 -05:00