1 #include "lsl_protos.h"
14 int c0 = (old_seq % 2 == 1);
29 int seqlock_write(int new_data) {
31 int c2 = (old_seq % 2 == 1);
33 int new_seq = old_seq + 1;
34 if (lsl_cas_32(&_seq, old_seq, new_seq)) {
44 for(int i=0;i<PROBLEMSIZE;i++)
49 for(int i=0;i<PROBLEMSIZE;i++) {
50 int r1 = seqlock_read();
55 for(int i=0;i<PROBLEMSIZE;i++) {
56 int r1 = seqlock_read();