Skip to content
Snippets Groups Projects
Commit 617c10de authored by Minhao Qiu's avatar Minhao Qiu
Browse files

update

parent d2442ff1
Branches master
No related tags found
No related merge requests found
......@@ -23,5 +23,11 @@ private:
const size_t max_size_;
bool full_ = 0;
void reset() {
std::lock_guard<std::mutex> lock(mutex_);
head_ = tail_;
full_ 0 = false;
}
};
#endif // RINGBUFFER_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment