what if another process removed or changed elements while that process is
working its way though the IP array?
would that not become a problem?
but the problem with multi-threaded access in compiled mode is more serious;
you don't want another thread to use the same register while a thread is in the
middle of a read/write operation.
p.s.
The "while" loop in your "Lock" method can be an over kill;
why not simply
If (Not (Semaphore ("<>aTestArray";$timeout) ) )
//..do something..
CLEAR SEMAPHORE("<>aTestArray")
End if
> 2016/11/01 14:03、Kirk Brooks <[email protected]> のメール:
> So I'm concluding the whole variable locking fetish is unnecessary.
宮古 啓介
セールス・エンジニア
株式会社フォーディー・ジャパン
〒150-0043
東京都渋谷区道玄坂1-10-2 渋谷THビル6F
Tel: 03-6427-8441
Fax: 03-6427-8449
[email protected]
www.4D.com/JP
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************