快速多生产,多消费无锁C++ 11的并发队列:concurrentqueue

jopen 10年前

快速多生产,多消费无锁C++ 11的并发队列:concurrentqueue。

Features

  • Knock-your-socks-off blazing fast performance.
  • Single-header implementation. Just drop it in your project.
  • General-purpose lock-free queue. Can be used concurrently from any number of threads.
  • C++11 implementation -- elements are moved (instead of copied) where possible.
  • Templated, obviating the need to deal exclusively with pointers -- memory is managed for you.
  • No limitations in terms of the type or quantity of elements that can be put in the queue.
  • Memory can be allocated once up-front, or dynamically as needed.
  • Fully portable (no assembly; all is done through the standard C++11 primitives).
  • Supports super-fast bulk operations.
  • Exception safe.

项目主页:http://www.open-open.com/lib/view/home/1418010401089