If you are not afraid of using basic COS functionality:
your reload method raises a LOCK ^myRELOAD
and drops it with completion LOCK -^myRELOAD
Your check utility does the same but with a timeout LOCK ^myRELOAD:0
if it fails - signaled by $TEST=0 you loop and hang around and retry
for success $TEST=1 you go on but release your successful LOCK immediately
not to block anyone else.
- Log in to post comments
.png)
.png)
.png)