Hi Roel,
I have a doubt, will this scenario work ...
Thread A & B races for lock on record 1.
Thread A locks record 1 gets cookie 1.
Thread B trys to lock record 1, sees its locked, waits.
Thread A performs update on record 1 and unlocks it.
Thread B gets notification, wakes up.
Thread B locks record 1 gets cookie 1.
Thread B updates record 1, and releases lock.
2 clients (A and B) are trying to lock record 1, they both will get 1 as lockCookie ...
this happens only if A&B can lock record 1 at same time, seems thats not possible with a lockRecord like that I used
Since recNo is unique, will that substitute a unique-cookie ...