summaryrefslogtreecommitdiffstats
path: root/lib/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread.c')
-rw-r--r--lib/thread.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/thread.c b/lib/thread.c
index a15df557..c130d876 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -44,8 +44,8 @@ static unsigned short timers_inited;
/* cpu stats needs to be qpthread safe. */
static qpt_mutex_t thread_mutex;
-#define LOCK qpt_mutex_lock(&thread_mutex);
-#define UNLOCK qpt_mutex_unlock(&thread_mutex);
+#define LOCK qpt_mutex_lock(thread_mutex);
+#define UNLOCK qpt_mutex_unlock(thread_mutex);
static struct hash *cpu_record = NULL;
/* Pointer to qtimer pile to be used, if any */
@@ -554,7 +554,7 @@ thread_master_create ()
{
#ifdef USE_MQUEUE
sigfillset (&newmask);
- sigdelset (&newmask, SIGMQUEUE);
+ sigdelset (&newmask, SIG_INTERRUPT);
#endif
if (cpu_record == NULL)
@@ -839,7 +839,7 @@ funcname_thread_add_write (struct thread_master *m,
* THREAD_TIMER or a THREAD_BACKGROUND thread, then thread->u.qtr points
* at the qtimer.
*
- * AND, conversely, if there is no qtimer, then thread->u.ptr == NULL.
+ * AND, conversely, if there is no qtimer, then thread->u.qtr == NULL.
*/
/*------------------------------------------------------------------------------
@@ -1524,14 +1524,14 @@ funcname_thread_execute (struct thread_master *m,
void
thread_init_r (void)
{
- qpt_mutex_init(&thread_mutex, qpt_mutex_quagga);
+ qpt_mutex_init(thread_mutex, qpt_mutex_quagga);
}
/* Finished with module */
void
thread_finish (void)
{
- qpt_mutex_destroy(&thread_mutex, 0);
+ qpt_mutex_destroy(thread_mutex, 0);
}
#undef USE_MQUEUE