Is there a C equivalent of "Lock"?
twm47099
Posts: 867
I thought that I remembered a multicore example in the Learning C or Activitybot tutorials that showed how to use "lock" when sharing data between cogs. But I can't find it. Was I mistaken or am I just confused. I have defined and used flag variables to prevent one cog from stepping on another's variables, but "lock" would have some advantages.
Thanks
Tom
Thanks
Tom
Comments
I'm not sure why this information is not in the Simple Library documentation. Find it here.
Thanks, that helps a lot.
Tom