Здравствуйте, MaximE, Вы писали:
ME>Еще раз — volatile абсолютно бесполезен для multithreading.
На мой взгляд, это слишком категорично. Volatile
может быть полезен для multithreading.
Вы приводили ссылки:
You do NOT need volatile for threaded programming. You do need it when you share
data between "main code" and signal handlers, or when sharing hardware registers
with a device. In certain restricted situations, it
MIGHT help when sharing
unsynchronized data between threads (but don't count on it -- the semantics of
"volatile" are too fuzzy).
... << RSDN@Home 1.1.4 beta 3 rev. 185>>