From 3cb9ba9e43902d7a4cf096e0b6cd3f12eda1b92c Mon Sep 17 00:00:00 2001 From: deischen Date: Sun, 4 May 2003 22:29:09 +0000 Subject: Protect against a race between granting a lock and accessing other parts of the lock. Submitted by: davidxu --- lib/libpthread/sys/lock.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libpthread/sys/lock.h') diff --git a/lib/libpthread/sys/lock.h b/lib/libpthread/sys/lock.h index 449ad36..e397111 100644 --- a/lib/libpthread/sys/lock.h +++ b/lib/libpthread/sys/lock.h @@ -55,6 +55,7 @@ struct lockreq { struct lockuser *lr_watcher; /* only used for priority locks */ struct lockuser *lr_owner; /* only used for priority locks */ long lr_waiting; /* non-zero when wakeup needed */ + volatile long lr_handshake; /* non-zero when wakeup in progress */ }; struct lockuser { -- cgit v1.1