Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/rq_bench.hfa

    rb7d94ac5 r1d5deea  
    9393
    9494struct __attribute__((aligned(128))) bench_sem {
    95         struct thread$ * volatile ptr;
     95        struct $thread * volatile ptr;
    9696};
    9797
     
    105105        bool wait(bench_sem & this) {
    106106                for() {
    107                         struct thread$ * expected = this.ptr;
     107                        struct $thread * expected = this.ptr;
    108108                        if(expected == 1p) {
    109109                                if(__atomic_compare_exchange_n(&this.ptr, &expected, 0p, false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)) {
     
    124124        bool post(bench_sem & this) {
    125125                for() {
    126                         struct thread$ * expected = this.ptr;
     126                        struct $thread * expected = this.ptr;
    127127                        if(expected == 1p) return false;
    128128                        if(expected == 0p) {
Note: See TracChangeset for help on using the changeset viewer.