Changes in benchmark/readyQ/rq_bench.hfa [1d5deea:b7d94ac5]
- File:
-
- 1 edited
-
benchmark/readyQ/rq_bench.hfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/readyQ/rq_bench.hfa
r1d5deea rb7d94ac5 93 93 94 94 struct __attribute__((aligned(128))) bench_sem { 95 struct $thread* volatile ptr;95 struct thread$ * volatile ptr; 96 96 }; 97 97 … … 105 105 bool wait(bench_sem & this) { 106 106 for() { 107 struct $thread* expected = this.ptr;107 struct thread$ * expected = this.ptr; 108 108 if(expected == 1p) { 109 109 if(__atomic_compare_exchange_n(&this.ptr, &expected, 0p, false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)) { … … 124 124 bool post(bench_sem & this) { 125 125 for() { 126 struct $thread* expected = this.ptr;126 struct thread$ * expected = this.ptr; 127 127 if(expected == 1p) return false; 128 128 if(expected == 0p) {
Note:
See TracChangeset
for help on using the changeset viewer.