Changes between Version 3 and Version 4 of AtomicOperations
- Timestamp:
- Jun 30, 2009, 8:04:05 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AtomicOperations
v3 v4 27 27 _itmask # enter critical section 28 28 # lock acquisition 29 loop LL Reg1 @ # Reg1 <= M[@]29 loop LL Reg1 @ # Reg1 <= M[@] 30 30 BNE Reg1 loop # continue if lock not taken (Reg1 == 0) 31 31 SC 1 @ # M[@] <= 1 / Reg2 <= KO