Skip to content

Commit

Permalink
Merge pull request #17 from stardog-union/mv-channel-mutable-lock
Browse files Browse the repository at this point in the history
make mutex mutable for const function
  • Loading branch information
jbalint authored Sep 1, 2020
2 parents c46e40d + 529487e commit 174ccbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class channel {

private:
std::condition_variable cv_;
std::mutex lock_;
mutable std::mutex lock_;
std::queue<T> buffer_;
bool eof_;
};
Expand Down

0 comments on commit 174ccbd

Please sign in to comment.