mirror of
https://github.com/ceph/ceph
synced 2025-01-10 13:10:46 +00:00
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:
parent
b53e06cac8
commit
918c58c85e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user