We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1958c2 commit fdb9c21Copy full SHA for fdb9c21
include/msd/channel.hpp
@@ -153,12 +153,12 @@ class channel {
153
std::condition_variable cnd_;
154
std::atomic<bool> is_closed_{false};
155
156
- inline void waitBeforeRead(std::unique_lock<std::mutex>& lock)
+ void waitBeforeRead(std::unique_lock<std::mutex>& lock)
157
{
158
cnd_.wait(lock, [this]() { return !empty() || closed(); });
159
};
160
161
- inline void waitBeforeWrite(std::unique_lock<std::mutex>& lock)
+ void waitBeforeWrite(std::unique_lock<std::mutex>& lock)
162
163
if (cap_ > 0 && size_ == cap_) {
164
cnd_.wait(lock, [this]() { return size_ < cap_; });
0 commit comments