/*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2017-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
return false;
}
+ bool readWithPriority(T& item, size_t priority) {
+ return queues_[priority].readIfNotEmpty(item);
+ }
+
size_t size() const {
size_t total_size = 0;
for (auto& q : queues_) {