Shop OBEX P1 Docs P2 Docs Learn Events
Is there a C equivalent of "Lock"? — Parallax Forums

Is there a C equivalent of "Lock"?

twm47099twm47099 Posts: 867
edited 2014-07-18 16:05 in Learn with BlocklyProp
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

Comments

Sign In or Register to comment.