diff options
author | 2000-01-06 07:18:26 +0000 | |
---|---|---|
committer | 2000-01-06 07:18:26 +0000 | |
commit | fe4226faf5f8b8492903e30d0317c09e4ce4a6c8 (patch) | |
tree | ba26de79f2426d610d014e9b4f3427d6cd24b023 /lib/libpthread | |
parent | dump verbosely only if PTHREAD_DEBUG env var is defined (diff) | |
download | wireguard-openbsd-fe4226faf5f8b8492903e30d0317c09e4ce4a6c8.tar.xz wireguard-openbsd-fe4226faf5f8b8492903e30d0317c09e4ce4a6c8.zip |
volatile
Diffstat (limited to 'lib/libpthread')
-rw-r--r-- | lib/libpthread/uthread/uthread_init.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libpthread/uthread/uthread_init.c b/lib/libpthread/uthread/uthread_init.c index cbcb33083ac..6b35532164b 100644 --- a/lib/libpthread/uthread/uthread_init.c +++ b/lib/libpthread/uthread/uthread_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_init.c,v 1.10 1999/11/25 07:01:37 d Exp $ */ +/* $OpenBSD: uthread_init.c,v 1.11 2000/01/06 07:18:26 d Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> * All rights reserved. @@ -40,6 +40,7 @@ #include <paths.h> #include <poll.h> #include <unistd.h> +#include <sys/ioctl.h> #include <sys/param.h> #include <sys/sysctl.h> #include <sys/time.h> @@ -59,8 +60,8 @@ struct pthread *volatile _last_user_thread = &_thread_kern_thread; struct pthread *volatile _thread_single = NULL; _thread_list_t _thread_list = TAILQ_HEAD_INITIALIZER(_thread_list); int _thread_kern_pipe[2] = { -1, -1 }; -int volatile _queue_signals = 0; -int _thread_kern_in_sched = 0; +volatile int _queue_signals = 0; +volatile int _thread_kern_in_sched = 0; struct timeval kern_inc_prio_time = { 0, 0 }; _thread_list_t _dead_list = TAILQ_HEAD_INITIALIZER(_dead_list); struct pthread *_thread_initial = NULL; |