synchronized code blocks #713
Unanswered
Mathilde411
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@SquidDev Sorry for tagging you but I really can not figure out how to make this work :/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey ! Hello everyone !
I am looking forward to make a peripheral that throw events, so I need to keep a list of connected computers.
However, the documentation specifies that it must be done "thread-safe and reentrant".
I saw the code for the DiskDrive Peripheral and it uses synchronized blocks for this purpose and I could not figure out what they do and how to use them while searching on the internet. Could somone explain it to me ?
Thanks ^^
Beta Was this translation helpful? Give feedback.
All reactions