Namespaces
Variants
Actions

Talk:cpp/thread/mutex/unlock

From cppreference.com
< Talk:cpp‎ | thread‎ | mutex

Hi, I don't know, where to edit the example. IMHO one should take a copy of g_num and unlock the mutex before printing to std::cout. The print might throw and the mutex stays locked. In this respect it is currently not the ideal example. 2.203.127.209 06:45, 14 September 2021 (PDT)


I found the template and chenged it. 2.203.127.209 06:52, 14 September 2021 (PDT)