|
|
|
|
|
by Espressosaurus
480 days ago
|
|
Which is why you manage atomic access to non-thread-safe objects yourself, or use a thread-safe version of them when using them across threads. Multithreading errors are the worst to debug. In this case it's dead simple to identify at design time and warning flags should have gone up as soon as he started thinking about using any of the normal containers in a multithreaded environment. |
|
There's simply no straightforward default approach that won't have you running into and thinking through the most esoteric sounding problems. I guess that's half the fun!