|
il y a 4 ans | |
---|---|---|
.. | ||
Makefile | il y a 4 ans | |
README.md | il y a 4 ans | |
concurrentqueue.h | il y a 4 ans | |
enlfq.cc | il y a 4 ans | |
enlfq.h | il y a 4 ans | |
enlfq_nif.cc | il y a 4 ans | |
enlfq_nif.h | il y a 4 ans | |
nif_utils.cc | il y a 4 ans | |
nif_utils.h | il y a 4 ans | |
rebar.config | il y a 4 ans |
A simple NIF lock-free Queue using the library: moodycamel::concurrentqueue
An industrial-strength lock-free queue for C++.
Features:
$ rebar3 compile
{ok, Q} = enlfq:new().
T = {any, term, [], #{}, 1}.
true = enlfq:push(Q,T).
{ok, T} = enlfq:pop(Q).
empty = enlfq:pop(Q).