From 7dfeb1c1963596edd36193ede5ce8f82c2bf76a5 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sun, 22 Feb 2015 15:26:21 +0100 Subject: Get rid of unneccessary volatile Some minor debugging code, mostly commented out --- src/server/locks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/locks.c') diff --git a/src/server/locks.c b/src/server/locks.c index cf35986..de37734 100644 --- a/src/server/locks.c +++ b/src/server/locks.c @@ -25,8 +25,8 @@ typedef struct { void *lock; - volatile time_t locktime; - volatile char locked; + time_t locktime; + char locked; pthread_t thread; int lockId; char name[LOCKLEN]; @@ -48,7 +48,7 @@ static debug_lock_t locks[MAXLOCKS]; static debug_thread_t threads[MAXTHREADS]; static int init_done = 0; static pthread_spinlock_t initdestory; -static volatile int lockId = 0; +static int lockId = 0; static pthread_t watchdog = 0; static int watchdogSignal = -1; -- cgit v1.2.3-55-g7522