First of all, I am pretty good at C ++ and understand the basics of streaming and thread synchronization. I also want to write my own memory allocator as my favorite project and read that they should be thread safe.
I understand what the term "thread safe" means, but I have no idea how to make C ++ code safe for threads.
Are there any practical examples or tutorials on how to make code safe?
In a memory allocation scenario, does this essentially mean that all mutating functions are marked as critical sections? Or is there something else?
source
share