Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: guo-shaoge <[email protected]>
  • Loading branch information
guo-shaoge committed Jul 11, 2022
1 parent 340a3ab commit 2e95d29
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dbms/src/Common/MPMCQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#pragma once

#include <Common/SimpleIntrusiveNode.h>
#include <Common/nocopyable.h>
#include <common/defines.h>
#include <common/types.h>

Expand Down Expand Up @@ -77,9 +78,7 @@ class MPMCQueue
// Cannot to use copy/move constructor,
// because MPMCQueue maybe used by different threads.
// Copy and move it is dangerous.
MPMCQueue(const MPMCQueue<T> &) = delete;
MPMCQueue(MPMCQueue<T> &&) = delete;
MPMCQueue<T> & operator=(const MPMCQueue<T> &) = delete;
DISALLOW_COPY_AND_MOVE(MPMCQueue);

/// Block until:
/// 1. Pop succeeds with a valid T: return true.
Expand Down

0 comments on commit 2e95d29

Please sign in to comment.