summaryrefslogtreecommitdiffstats
path: root/lib/command.c
diff options
context:
space:
mode:
authorpaul <paul>2005-04-25 16:26:42 +0000
committerpaul <paul>2005-04-25 16:26:42 +0000
commit7bf56948ad12e306e8abe8678c5a3b612b0416aa (patch)
treea7267eeec8fc70b20c9b915e456f0c302abd2534 /lib/command.c
parent75e4537e2f0f3cef7dc307265626a5f298677f21 (diff)
downloadquagga-7bf56948ad12e306e8abe8678c5a3b612b0416aa.tar.bz2
quagga-7bf56948ad12e306e8abe8678c5a3b612b0416aa.tar.xz
2005-04-25 Paul Jakma <paul.jakma@sun.com>
* workqueue.{c,h}: Helper API for setting up and running queues via background threads. * command.c: install the 'show workqueues' command * memtypes.c: Add work queue mtypes, and a rib-queue type for a zebra rib work queue. * memtypes.h: Updated to match memtypes.c * Makefile.am: Add new workqueue files to build.
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/command.c b/lib/command.c
index 5052c6b4..310b93ec 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -31,6 +31,7 @@ Boston, MA 02111-1307, USA. */
#include "vector.h"
#include "vty.h"
#include "command.h"
+#include "workqueue.h"
/* Command vector which includes some level of command lists. Normally
each daemon maintains each own cmdvec. */
@@ -3578,8 +3579,10 @@ cmd_init (int terminal)
install_element (CONFIG_NODE, &service_terminal_length_cmd);
install_element (CONFIG_NODE, &no_service_terminal_length_cmd);
- install_element(VIEW_NODE, &show_thread_cpu_cmd);
- install_element(ENABLE_NODE, &show_thread_cpu_cmd);
+ install_element (VIEW_NODE, &show_thread_cpu_cmd);
+ install_element (ENABLE_NODE, &show_thread_cpu_cmd);
+ install_element (VIEW_NODE, &show_work_queues_cmd);
+ install_element (ENABLE_NODE, &show_work_queues_cmd);
}
srand(time(NULL));
}