From 7ecd6323ffedbfef92c87c02b2a8680dd53b772c Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期四, 06 五月 2021 19:37:50 +0800 Subject: [PATCH] rename atomic queue io function. --- src/robust.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/robust.h b/src/robust.h index b29fce5..3334bc0 100644 --- a/src/robust.h +++ b/src/robust.h @@ -307,7 +307,7 @@ size_type tail() const { return tail_.load(); } bool like_empty() const { return head() == tail() && Empty(buf[head()]); } bool like_full() const { return head() == tail() && !Empty(buf[head()]); } - bool push_back(const Data d, bool try_more = false) + bool push(const Data d, bool try_more = false) { bool r = false; size_type i = 0; @@ -320,7 +320,7 @@ } while (try_more && !r && ++i < capacity); return r; } - bool pop_front(Data &d, bool try_more = false) + bool pop(Data &d, bool try_more = false) { bool r = false; Data cur; -- Gitblit v1.8.0