Propeller Manual

Table Of Contents
2: Spin Language Reference – LOCKSET
Propeller Manual v1.1 · Page 127
condition “until not lockset…” is true, meaning we have “locked the resource” and the first
REPEATT loop ends. The second REPEAT loop in each method reads or writes the resource, via
the
long[Idx] and LocalData[Idx] statements. The last line of each method,
lockclr(SemID
), clears the resource’s associated lock to FALSE, logically unlocking or
releasing the resource for others to use.
See
LOCKNEW, page 122; LOCKRET, page 125; and LOCKCLR, page 120 for more information.