Thread Safety #1297
shemeshg
started this conversation in
Suggestions
Thread Safety
#1297
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
what if there was a magical way to indicate that a function might be called from a thread and to warn me if I forget to use
std::lock_guard<std::mutex> lock(mtx);
if not atomic and isinout
.This is probably unrealistic, which is why Go has its channels to handle such scenarios.
Actually, just thought about it again, and all I need for that is a way to say.
but this is ok
Beta Was this translation helpful? Give feedback.
All reactions