From d9c2a6cf943ca08f31f61a3fada940f77e3a03d3 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 11 Jan 2016 12:09:23 +0100 Subject: [SERVER] Fix a lot of (mostly harmless) data races --- LOCKS | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'LOCKS') diff --git a/LOCKS b/LOCKS index f2e64dd..a28e42a 100644 --- a/LOCKS +++ b/LOCKS @@ -16,14 +16,15 @@ integrityQueueLock remoteCloneLock | reloadLock _images_lock _images[].lock -uplink.queueLock -pendingLockProduce pendingLockConsume +pendingLockProduce +uplink.queueLock altServersLock client.sendMutex client.statsLock statisticsSentLock statisticsReceivedLock +uplink.rttLock If you need to lock multiple clients/images/... at once, lock the client with the lowest array index first. -- cgit v1.2.3-55-g7522