PrioritizedQueue: remove internal lock, not used

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Samuel Just 2012-11-15 16:01:18 -08:00
parent b53e06cac8
commit 918c58c85e

View File

@ -44,7 +44,6 @@
*/
template <typename T, typename K>
class PrioritizedQueue {
Mutex lock;
int64_t total_priority;
template <class F>
@ -186,8 +185,7 @@ class PrioritizedQueue {
}
public:
PrioritizedQueue()
: lock("PrioritizedQueue::lock"), total_priority(0) {}
PrioritizedQueue() : total_priority(0) {}
unsigned length() {
unsigned total = 0;