aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/lfqueue_batch.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/messagebus/lfqueue_batch.h
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 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 eeb921dc7c3..8128d3154d0 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);