From 2812390f334cb593ef28c465f5ac273fcb4a0cc5 Mon Sep 17 00:00:00 2001 From: sr Date: Sat, 13 Jul 2013 16:10:41 +0200 Subject: Rewriting..... --- LOCKS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LOCKS') diff --git a/LOCKS b/LOCKS index d6085c5..61ce937 100644 --- a/LOCKS +++ b/LOCKS @@ -27,8 +27,8 @@ For example, if you hold the lock for client 10 and you need to look up some other client. You MUST NOT simply fetch the _clients_lock now and then iterate over the clients until you find the one you need, -as it violates the above order to first lock on a -client and then the clients lock. +as it violates the above order to first lock on the +clients array and then the clients lock. Instead, you need to release client 10's lock, then lock on _clients_lock and iterate over the clients. Now you check if you either encounter -- cgit v1.2.3-55-g7522