summaryrefslogtreecommitdiffstats
path: root/lib/qlib_init.c
diff options
context:
space:
mode:
authorpaulo <paul@bayleaf.org.uk>2010-01-21 14:53:26 +0000
committerpaulo <paul@bayleaf.org.uk>2010-01-21 14:53:26 +0000
commit0543006c11cd6e092e390b203dac1dcc8b26fd06 (patch)
tree22b7ba595a1bc472775e032263529741986408d7 /lib/qlib_init.c
parent305c1b3dd35748bc949a139ce8db03f7f5552cde (diff)
downloadquagga-0543006c11cd6e092e390b203dac1dcc8b26fd06.tar.bz2
quagga-0543006c11cd6e092e390b203dac1dcc8b26fd06.tar.xz
Fixes to get 3 threads working. Fixes to get threaded command working.
Removed some of the temporary debuggery in qtimers that only worked in 1 thread. Initialised the mqueue mutex. Stopped peer_index from zeroizing its mutex after it had been initialized.
Diffstat (limited to 'lib/qlib_init.c')
-rw-r--r--lib/qlib_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/qlib_init.c b/lib/qlib_init.c
index e6bce633..67391395 100644
--- a/lib/qlib_init.c
+++ b/lib/qlib_init.c
@@ -25,6 +25,7 @@
#include "qpthreads.h"
#include "thread.h"
#include "privs.h"
+#include "mqueue.h"
/*==============================================================================
* Quagga Library Initialise/Closedown
@@ -75,6 +76,7 @@ qlib_init_second_stage(int pthreads)
memory_init_r();
thread_init_r();
zprivs_init_r();
+ mqueue_initialise();
}