-
is there a mutex built-in to guarantee the underlaying data structure not broken and modified with mutex? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
No, the container is like a map or a vector: you have to ensure thread safety yourself. |
Beta Was this translation helpful? Give feedback.
-
ahh ty. I asked because I felt like as if there's a mutex, when I compiled it to webassembly and used multithreading and I had to be sure yea thanks |
Beta Was this translation helpful? Give feedback.
No, the container is like a map or a vector: you have to ensure thread safety yourself.