Atomic.casWeak

Compare and swap

  1. bool cas(T oldVal, T newVal)
  2. bool casWeak(T oldVal, T newVal)
    struct Atomic(T)
    shared
    bool
    casWeak
    (
    MemoryOrder mo = MemoryOrder.seq
    MemoryOrder fmo = MemoryOrder.seq
    )
    if (
    __traits(isIntegral, T) ||
    isPointer!T
    )

Meta