Код: Выделить всё
class MyTest {
void getter() {
std::unique_lock lock(mutex);
if (!set_) {
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79770133/c-mutex-and-memory-barrier[/url]Код: Выделить всё
class MyTest {
void getter() {
std::unique_lock lock(mutex);
if (!set_) {
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79770133/c-mutex-and-memory-barrier[/url]