Skip to content

Use sequentially consistent ordering always for debugging

License

Notifications You must be signed in to change notification settings

JuliaConcurrent/AlwaysSeqCst.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlwaysSeqCst

AlwaysSeqCst.jl provides macros @atomic, @atomicswap, and @atomicreplace that ignore the ordering arguments and use :sequentially_consistent always. It may be useful for a quick debugging of miss-specified memory orderings.

Usage

At the beginning of the module you are debugging:

using AlwaysSeqCst: @atomic, @atomicswap, @atomicreplace

Alternatively, to ignore the warning from the package loader:

const AlwaysSeqCst =
    Base.require(Base.PkgId(Base.UUID(0x2a0a5ff3012c40a8861a42ef8f4dfa06), "AlwaysSeqCst"))
using .AlwaysSeqCst: @atomic, @atomicswap, @atomicreplace

About

Use sequentially consistent ordering always for debugging

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages