Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

The std::recursive_mutex is a mutex variant that can be locked multiple times by the same thread. Other threads can only acquire a lock on the mutex after all held locks have been released. This can significantly simplify code where several functions need to acquire the lock and call each other. Compiler Explorer link: https://lnkd.in/e2_wRqqe #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text
Snippy Valson

KeyValue Software Systems2K followers

1y

Isn’t this called a re-entrant mutex as well?

This is very helpful!

See more comments

To view or add a comment, sign in

Explore content categories