FYI, there is also an intrusive spsc queue algorithm:
https://groups.google.com/forum/?hl=ru&fromgroups#!topic/comp.programming.threads/AsNwCD5lgAA
But in general I think array-based bounded queue is a better fit here. It
does
not need to traverse linked lists, allocate and use mutex-based queue in
tcmalloc to pass the nodes back from consumer to producer.
https://codereview.chromium.org/17294004/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.