Ignore:
Timestamp:
Sep 14, 2021, 12:47:47 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
a3769cc, fdfb0ba
Parents:
72bd9cd
Message:

Minor fixes to warnings, printing and ridiculous go/rust requirements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/readyQ/locality.rs

    r72bd9cd rebb6158  
    124124                                                return (r as *mut MyData, true);
    125125                                        }
    126                                         let got = self.ptr.compare_and_swap(expected, ctx as *mut MyCtx as u64, Ordering::SeqCst);
    127                                         if got == expected {
     126                                        let got = self.ptr.compare_exchange_weak(expected, ctx as *mut MyCtx as u64, Ordering::SeqCst, Ordering::SeqCst);
     127                                        if got == Ok(expected) {
    128128                                                break expected;// We got the seat
    129129                                        }
Note: See TracChangeset for help on using the changeset viewer.