MPMCQueue Wrapper with priorities
authorScott Michelson <sdmich@fb.com>
Wed, 1 Feb 2017 20:03:48 +0000 (12:03 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 1 Feb 2017 20:18:48 +0000 (12:18 -0800)
commitcf24f9855c678de382e0abbf0e6de257058581f6
treeaa0fe4ea794f6e49a4224965adfdde02b666e805
parent41365ea66d92749ba78f73d60325e5447beb04ab
MPMCQueue Wrapper with priorities

Summary: In many cases where MPMCQueue would be used, it's useful to be able to prioritize requests. This implements a thin wrapper on MPMCQueue to accomplish this (albeit in a bit of a memory inefficient way)

Reviewed By: haijunz

Differential Revision: D4465498

fbshipit-source-id: 6630b80ccf3138b5c135e7f7f281133b37d82b4d
folly/Makefile.am
folly/PriorityMPMCQueue.h [new file with mode: 0644]
folly/test/PriorityMPMCQueueTest.cpp [new file with mode: 0644]