diff options
author | paulo <paul@bayleaf.org.uk> | 2009-12-07 14:21:17 +0000 |
---|---|---|
committer | paulo <paul@bayleaf.org.uk> | 2009-12-07 14:21:17 +0000 |
commit | 63565b7d35577d095089ee579534abd7788f50ab (patch) | |
tree | 726a9c2a32db3f36126fe952e786fe641c8bfca5 /lib/vty.h | |
parent | 2c282bd4752f5eae9d5e40d687fdc6af2f203c91 (diff) | |
download | quagga-63565b7d35577d095089ee579534abd7788f50ab.tar.bz2 quagga-63565b7d35577d095089ee579534abd7788f50ab.tar.xz |
Make vty and log thread safe under single mutex.
Diffstat (limited to 'lib/vty.h')
-rw-r--r-- | lib/vty.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -23,6 +23,7 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA #include "thread.h" #include "log.h" +#include "qpthreads.h" #define VTY_BUFSIZ 512 #define VTY_MAXHIST 20 @@ -205,10 +206,18 @@ do { /* Exported variables */ extern char integrate_default[]; +extern qpt_mutex_t* vty_mutex; +#ifndef NDEBUG +extern int vty_lock_count; +#endif /* Prototypes. */ +extern void vty_init_r (struct thread_master *); +extern void vty_terminate_r (void); + extern void vty_init (struct thread_master *); extern void vty_init_vtysh (void); +extern void vty_terminate_r (void); extern void vty_terminate (void); extern void vty_reset (void); extern struct vty *vty_new (void); |