Topic: N3533 - C++ Concurrent Queues - batch interface
Author: =?UTF-8?Q?V=C3=A1clav_Zeman?= <vhaisman@gmail.com>
Date: Fri, 12 Apr 2013 11:27:48 +0200
Raw View
Hello.
I have read the N3533 proposal and it is very interesting. One thing
that I am missing there is some kind of batch interface to pop
elements. My motivation for this requirement/wish is that it is useful
in multiple producers, single consumer case.
Let's say that the queue is a std::deque based one. The consumer can
then lock access to the queue, swap the queue's std::deque instance
with his empty std::deque instance and unlock the queue. This has
significantly lower synchronization overhead than synchronizing each
pop operation separately.
--
VZ
--
---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en.
.