Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This example returns Lock 2 back to the Hub. This doesn't prevent cogs from accessing Lock 2 afterwards, it only allows the Hub to reassign it to cogs that call LOCKNEW in the future. Applications should be written such that locks are not accessed with LOCKSET or LOCKCLR unless they are currently checked out.

See [About Locks, page , and Suggested Rules for Locks, page for See Locks for information on the typical use of locks and the LOCKxxx commands.

...