compiling error

This commit is contained in:
mutouyun 2018-12-24 13:34:42 +08:00
parent 492d095332
commit a4079ab7af

View File

@ -105,7 +105,7 @@ public:
// check all consumers have finished reading
while(1) {
uint_t<32> expected = 0,
conn_cnt = cc_.load(std::memory_order_acquire);
conn_cnt = static_cast<uint_t<32>>(conn_count()); // acquire
if (el->head_.rc_.compare_exchange_weak(
expected, conn_cnt, std::memory_order_relaxed)) {
break;