summaryrefslogtreecommitdiff
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
commit354d119a6569b2c6335ae9309e4606e5cccedb6a (patch)
treee29bb213c52bb46b3454f845fa5892df306b82e2 /lib/command.c
parentb64d92a8a88e69f711976a3c12c17667ecaba4ee (diff)
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.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/command.c b/lib/command.c
index 64118103..9b5f75f2 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -1,5 +1,5 @@
/*
- $Id: command.c,v 1.46 2005/03/14 20:19:01 paul Exp $
+ $Id: command.c,v 1.47 2005/04/25 16:26:42 paul Exp $
Command interpreter routine for virtual terminal [aka TeletYpe]
Copyright (C) 1997, 98, 99 Kunihiro Ishiguro
@@ -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));
}