05-05-2017, 07:39 AM
I've been recently into c++, had my first segfault a few days ago.
What I still don't get, why can't things not be thread safe automagically? Can't we just assume it's thread safe? I mean, if I have a pointer in both threads, why can't I just use it in both or at least read only. Damn.
What I still don't get, why can't things not be thread safe automagically? Can't we just assume it's thread safe? I mean, if I have a pointer in both threads, why can't I just use it in both or at least read only. Damn.