equal
deleted
inserted
replaced
30 *atomicvar = exchange; |
30 *atomicvar = exchange; |
31 } |
31 } |
32 return res; |
32 return res; |
33 } |
33 } |
34 |
34 |
35 long AtomicCompareExchange64(long long* atomicvar,long long compared, long long exchange) |
35 long long AtomicCompareExchange64(long long* atomicvar,long long compared, long long exchange) |
36 { |
36 { |
37 /* No need for real atomic op on LPC, |
37 /* No need for real atomic op on LPC, |
38 * no possible preemption between debug and PLC */ |
38 * no possible preemption between debug and PLC */ |
39 long long res = *atomicvar; |
39 long long res = *atomicvar; |
40 if(res == compared){ |
40 if(res == compared){ |