On Wed, Jul 3, 2013 at 1:26 PM, Gregory Burd <
gr...@burd.me> wrote:
> Navaneeth,
>
> You know, I may be mistaken. :) I just checked and libuv has its own
> queue.h-like implementation
> (
https://github.com/joyent/libuv/blob/master/src/queue.h), not the one more
> commonly used that I know of. Apologies for the misdirection. That's what
> I get for not reading the code first, seems I need more coffee.
>
> You may want to use the slightly more confusing but certainly very well
> tested queue.h that I mentioned. Or at least take a look at it anyway.
>
> best,
>
> -greg
>
You're not far off the mark. Libuv's queue.h is a replacement for
ngx-queue.h*, which in turn is based on BSD's queue.h.
* There was nothing wrong with ngx-queue.h per se but it introduced an
additional dependency and a new symbol, the ngx_queue_t type. C's
single namespace being what it is, I thought it prudent to drop it.