Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Add one to i.
- i += 1
- # Lock to protect against concurrent access.
- mutex = SpinLock.new
- # This method swaps the panels.
- def swap_panels(panel_1, panel_2)
- # ...
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement