Hello, all!

Tip of the day from Makova AG (www.makova.com):

How to lock node with subnodes for reading and for writing?

1. Node can be locked only for reading by many processes.
2. Node can be locked for writing only by one process.

Solving:
node: ^GlobName([indexes])

read locking:
 l +^GlobName([indexes,]$J_" "_$zu(110)) e ZTRAP "RLCK"
 ; here node ^GlobName([indexes]) cannot be changed
 l -^GlobName([indexes,]$J_" "_$zu(110))

write locking:
 l +^GlobName[(indexes)] e ZTRAP "WLCK"
 ; here node ^GlobName([indexes]) cannot be read by other processes
 ; and changed by other processes
 l -^GlobName[(indexes)]

Do you have any tips?




Reply via email to