diff options
author | David Leonard <d@cvs.openbsd.org> | 2000-01-06 07:06:43 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 2000-01-06 07:06:43 +0000 |
commit | 16ba6d793fa5cf44efca8a396982274f6b7bd40f (patch) | |
tree | 7804f0b523a296d8d4541ae4d919afdba9fa0f84 /lib/libc_r | |
parent | 89df7fde8f911603874af3bee9e472d97d35bc3f (diff) |
volatile the spinlock
Diffstat (limited to 'lib/libc_r')
-rw-r--r-- | lib/libc_r/include/spinlock.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc_r/include/spinlock.h b/lib/libc_r/include/spinlock.h index 772331be377..77605003df0 100644 --- a/lib/libc_r/include/spinlock.h +++ b/lib/libc_r/include/spinlock.h @@ -29,8 +29,8 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: spinlock.h,v 1.4 1999/11/25 07:01:29 d Exp $ - * $OpenBSD: spinlock.h,v 1.4 1999/11/25 07:01:29 d Exp $ + * $Id: spinlock.h,v 1.5 2000/01/06 07:06:42 d Exp $ + * $OpenBSD: spinlock.h,v 1.5 2000/01/06 07:06:42 d Exp $ * * Lock definitions used in both libc and libpthread. * @@ -45,11 +45,11 @@ /* * Lock structure with room for debugging information. */ -typedef struct { - volatile _spinlock_lock_t access_lock; - volatile void * lock_owner; - volatile const char * fname; - volatile int lineno; +typedef volatile struct { + _spinlock_lock_t access_lock; + void * lock_owner; + const char * fname; + int lineno; } spinlock_t; #define _SPINLOCK_INITIALIZER { _SPINLOCK_UNLOCKED, 0, 0, 0 } |