~skeeto/public-inbox

1

Re: A lock-free, concurrent, generic queue in 32 bits

Details
Message ID
<2d2c9b63-0c3e-6115-02ed-cacc17153bec@nerd2nerd.org>
DKIM signature
missing
Download raw message
Hi!

Just read the article and I think I found a bug:

In the "Multiple-consumers" example, you are still using the "Single-consumer" functions.
Instead of

             ...
||i = queue_pop(&q, EXP, &save); |... ||} while (!queue_pop_commit(&q, save));|

the `|queue_mpop`||and `||queue_mpop_commit` versions should be used. Love your content. Cheers |

Re: A lock-free, concurrent, generic queue in 32 bits

Details
Message ID
<20220514122509.f77imdnzim246jr3@nullprogram.com>
In-Reply-To
<2d2c9b63-0c3e-6115-02ed-cacc17153bec@nerd2nerd.org> (view parent)
DKIM signature
missing
Download raw message
You're right, thanks! That's what I get for not actually compiling the 
examples. It's now fixed:

https://github.com/skeeto/skeeto.github.com/commit/f405f48
Reply to thread Export thread (mbox)