Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Atomic ?
#1
Hi, I often go to the Git page to follow PCSX2 progresses. And those days I read Atomic on many revs.

Anybody could explain what it is ?
Reply

Sponsored links

#2
https://en.wikipedia.org/wiki/Linearizability
[Image: vwah44]
Gaming: Intel i7 3770k @ 4.2Ghz | R9 290 | 16GB RAM | 480GB(240GB+240GB RAID0) SSD | 3 TB HDD | 1 TB HDD | 500GB HDD
Server: AMD FX 6300 @ 4.4Ghz | GTX 670 | 16GB RAM | 240GB SSD | 320GB HDD
PCSX2 General Troubleshooting FAQ
Reply
#3
When you do an addition (let's say + 1), you do it in 3 step.
1/ load the value in memory
2/ you do the +1
3/ you store the result in memory

A program can stop at 1 or 2, execute plenty of operation and then resume. Unfortunately data could be corrupted. Atomic is just way to block everyone and to guarantee that you can't split the above example in 3 steps.

From PCSX2 point of view, it justs a way to replace old API with the new one from the C++11 standard. This way it works the same on linux/windows and 32b/64b.
Reply
#4
Headache incoming !

Thanks for the infos.
Reply




Users browsing this thread: 1 Guest(s)