MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1vu3xoh/how_to_write_the_perfect_function/p530vhu/?context=3
r/cpp • u/parkotron • Aug 21 '26
24 comments sorted by
View all comments
Show parent comment
5
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.
std::condition_variable
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.