All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.qbicc.graph.atomic.ReadWriteModes Maven / Gradle / Ivy

There is a newer version: 0.77.0
Show newest version
package org.qbicc.graph.atomic;

enum ReadWriteModes implements ReadWriteAccessMode, AtomicTraits {
    SingleUnshared(0) {
        @Override
        public GlobalReadWriteAccessMode getGlobalAccess() {
            return FullFences.GlobalUnshared;
        }
    },
    SinglePlain(SINGLE_ATOMIC) {
        @Override
        public GlobalReadWriteAccessMode getGlobalAccess() {
            return FullFences.GlobalPlain;
        }
    },
    SingleOpaque(SINGLE_OPAQUE),
    SingleSeqCst(SINGLE_SEQ_CST),
    ;

    private final int bits;

    ReadWriteModes(int bits) {
        this.bits = bits;
    }

    @Override
    public GlobalReadWriteAccessMode getGlobalAccess() {
        return FullFences.GlobalSeqCst;
    }

    @Override
    public int getBits() {
        return bits;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy