summaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/lfqueue_batch.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <[email protected]>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/messagebus/lfqueue_batch.h
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
Restoring authorship annotation for Vlad Yaroslavlev <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/lfqueue_batch.h')
-rw-r--r--library/cpp/messagebus/lfqueue_batch.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/messagebus/lfqueue_batch.h b/library/cpp/messagebus/lfqueue_batch.h
index 8128d3154d0..eeb921dc7c3 100644
--- a/library/cpp/messagebus/lfqueue_batch.h
+++ b/library/cpp/messagebus/lfqueue_batch.h
@@ -8,7 +8,7 @@
template <typename T, template <typename, class> class TVectorType = TVector>
class TLockFreeQueueBatch {
private:
- TLockFreeStack<TVectorType<T, std::allocator<T>>*> Stack;
+ TLockFreeStack<TVectorType<T, std::allocator<T>>*> Stack;
public:
bool IsEmpty() {
@@ -19,11 +19,11 @@ public:
Stack.Enqueue(vec.Release());
}
- void DequeueAllSingleConsumer(TVectorType<T, std::allocator<T>>* r) {
- TTempTlsVector<TVectorType<T, std::allocator<T>>*> vs;
+ void DequeueAllSingleConsumer(TVectorType<T, std::allocator<T>>* r) {
+ TTempTlsVector<TVectorType<T, std::allocator<T>>*> vs;
Stack.DequeueAllSingleConsumer(vs.GetVector());
- for (typename TVector<TVectorType<T, std::allocator<T>>*>::reverse_iterator i = vs.GetVector()->rbegin();
+ for (typename TVector<TVectorType<T, std::allocator<T>>*>::reverse_iterator i = vs.GetVector()->rbegin();
i != vs.GetVector()->rend(); ++i) {
if (i == vs.GetVector()->rend()) {
r->swap(**i);