Skip to content

๐ŸŽ›๏ธ Zig port of the intrusive wait-free MPSC queue created by @dvyukov.

License

Notifications You must be signed in to change notification settings

tensorush/zig-mpsc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸฆŽ ๐ŸŽ›๏ธ zig mpsc

CI CD DC CC LC

Zig port of the intrusive wait-free MPSC queue created by Dmitry Vyukov.

๐Ÿš€ Usage

  1. Add mpsc as a dependency in your build.zig.zon.

    build.zig.zon example
    .{
        .name = "<name_of_your_package>",
        .version = "<version_of_your_package>",
        .dependencies = .{
            .mpsc = .{
                .url = "https://github.com/tensorush/zig-mpsc/archive/<git_tag_or_commit_hash>.tar.gz",
                .hash = "<package_hash>",
            },
        },
    }

    Set <package_hash> to 12200000000000000000000000000000000000000000000000000000000000000000, and Zig will provide the correct found value in an error message.

  2. Add mpsc as a module in your build.zig.

    build.zig example
    const mpsc = b.dependency("mpsc", .{});
    exe.addModule("Mpsc", mpsc.module("Mpsc"));