Код: Выделить всё
class MyTest {
void getter() {
std::unique_lock lock(mutex_);
if (!set_) {
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79770465/c-mutex-with-different-data-in-the-critical-section[/url]Код: Выделить всё
class MyTest {
void getter() {
std::unique_lock lock(mutex_);
if (!set_) {
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79770465/c-mutex-with-different-data-in-the-critical-section[/url]