From owner-sc22wg5@open-std.org  Fri Oct 31 19:03:32 2008
Return-Path: <owner-sc22wg5@open-std.org>
X-Original-To: sc22wg5-dom7
Delivered-To: sc22wg5-dom7@www2.open-std.org
Received: by www2.open-std.org (Postfix, from userid 521)
	id E2F1DC178DE; Fri, 31 Oct 2008 19:03:32 +0100 (CET)
X-Original-To: sc22wg5@open-std.org
Delivered-To: sc22wg5@open-std.org
Received: from oin.rl.ac.uk (oin.rl.ac.uk [130.246.135.200])
	by www2.open-std.org (Postfix) with ESMTP id 4CFCEC178DC
	for <sc22wg5@open-std.org>; Fri, 31 Oct 2008 19:03:31 +0100 (CET)
X-RAL-MFrom: <John.Reid@stfc.ac.uk>
X-RAL-Connect: <jkr.cse.rl.ac.uk [130.246.9.202]>
Received: from jkr.cse.rl.ac.uk (jkr.cse.rl.ac.uk [130.246.9.202])
	by oin.rl.ac.uk (8.12.11.20060308/8.12.11) with ESMTP id m9VI3LZL013200
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Fri, 31 Oct 2008 18:03:21 GMT
Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1])
	by jkr.cse.rl.ac.uk (8.12.10/8.12.8) with ESMTP id m9VI3Klt002815;
	Fri, 31 Oct 2008 18:03:20 GMT
Message-ID: <490B4868.9070501@stfc.ac.uk>
Date: Fri, 31 Oct 2008 18:03:20 +0000
From: John Reid <John.Reid@stfc.ac.uk>
Reply-To: John.Reid@stfc.ac.uk
Organization: Rutherford Appleton Laboratory
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060209 Fedora/1.7.12-1.1.2.legacy
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: WG5 <sc22wg5@open-std.org>
Subject: N1752
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-CCLRC-SPAM-report: 0 : 
X-Scanned-By: MIMEDefang 2.39
Sender: owner-sc22wg5@open-std.org
Precedence: bulk

WG5,

Bill has convinced me in private email that N1752 is flawed. He says:

"SpinLock[Q] was initially set to locked by image Q  (first LOCK statement). 
Then you try to execute an UNLOCK on that lock from image P.  This violates a 
basic rule for locks:

An error condition occurs if the value of the lock variable in an
UNLOCK statement is unlocked, or if the lock variable is currently
locked by a different image. The status can be used to distinguish
the two cases.

The point of a LOCK is for a particular image (Q) to claim ownership of the lock 
and associated data, and prevent interlopers (image P) from disturbing that 
situation until the original owner releases the lock.  You can't allow someone 
else to unlock a lock that you currently own.  It defeats the original purpose."


I do not see how to get out of this. If anyone else can, please tell me.

For the present, N1752 should be ignored.

Sorry!

John.
