PropBasic - example code using locks?
pmrobert
Posts: 675
I have finally given in and am asking for example PropBasic code showing use of locks between tasks. I've tried pretty much every permutation of code I could envision - to no avail. I've searched and the only clue I was able to find is that it works just like in Spini. All well and good, but the way it works in Spin seems to utilize globally visible hub variables - which do not directly exist in PropBasic. I've tried rdlong/wrlong conversions, etc., but still no go. Even a clue would be very welcome!
-Mike
-Mike
Comments
The __param1 usage here is just as a temporary variable. It could have been any unused variable.
If you check the Propeller manual you can find how LOCKSET works, and then this should make sense. I suspect the PropBASIC manual and/or instruction-reference guide/s might also mention LOCKSET.. might be worth a look there too.
If you are still unsure after checking the guides, feel free to reply and I will try to provide a more complete explanation or example.
Good luck!
http://forums.parallax.com/showthread.php?143050-PropBASIC-status&p=1134491&viewfull=1#post1134491
The manual describes LOCKSET on page 56!
-Mike