Propeller Manual

Table Of Contents
2: Spin Language Reference – LOCKCLR
Propeller Manual v1.1 · Page 121
condition “until not lockset…” is true, meaning we have “locked the resource” and the first
repeat 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 LOCKSET, page 126 for more information.