cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
why say 'exchange' is a 'read-modify-wri
why say 'exchange' is a 'read-modify-write' operation?
Aug 21, 2016 at 5:43pm UTC
Wu zhen hai
(112)
why say 'exchange' is a 'read-modify-write' operation?
Aug 22, 2016 at 12:15am UTC
kevinkjt2000
(1063)
The entire operation is atomic (an atomic read-modify-write operation): the value is not affected by other threads between the instant its value is read (to be returned) and the moment it is modified by this function.
http://www.cplusplus.com/reference/atomic/atomic/exchange/
Topic archived. No new replies allowed.