To learn more about multithread programming I decided to implement my own version of some low-level memory object. I took a look at std::mutex
because of this, and I was pretty intimidated and confused by its definition (compared to my style it's quite arcane, and I'm failing to track down simple things like function definitions). So, I decided to look at std::atomic
instead, and the header is a whopping 1400 lines. Also seems like much of the code references "deeper down" machinery, if that makes sense. Uses the <bit>
header file, and std::mutex
is filled with included macro use.
Before I continue, is implementing any of this a practical goal without esoteric knowledge? Should I leave it to the compiler writers?