r/cpp • • Aug 21 '26

How to write the perfect function

https://youtu.be/2OMRWPOSw9s
140 Upvotes

24 comments sorted by

View all comments

Show parent comment

5

u/ABlockInTheChain Aug 21 '26

I found a library that wraps mutexes with the data they protect and ever since then I use it as often as possible.

The only glaring deficiency I've run into is that you can't use it for if you need a std::condition_variable.