LINUX.ORG.RU

История изменений

Исправление slovazap, (текущая версия) :

Нет, ссылаться ты можешь только на стандарт, и твоей цитаты выше там нет в помине firefox криво ищет по pdf. Но ты таки прав.

Two expression evaluations conflict if one of them modifies a memory location (1.7) and the other one accesses or modifies the same memory location.

The execution of a program contains a data race if it contains two potentially concurrent conflicting actions, at least one of which is not atomic, and neither happens before the other, except for the special case for signal handlers described below. Any such data race results in undefined behavior.

Ok, значит пусть будет std::atomic.

Исходная версия slovazap, :

Нет, ссылаться ты можешь только на стандарт, и твоей цитаты выше там нет в помине. Но ты таки прав.

Two expression evaluations conflict if one of them modifies a memory location (1.7) and the other one accesses or modifies the same memory location.

The execution of a program contains a data race if it contains two potentially concurrent conflicting actions, at least one of which is not atomic, and neither happens before the other, except for the special case for signal handlers described below. Any such data race results in undefined behavior.

Ok, значит пусть будет std::atomic.