Skip to content

Commit

Permalink
sets mutex to mutable to allow use in const accessors references #292
Browse files Browse the repository at this point in the history
  • Loading branch information
zaphoyd committed Nov 5, 2013
1 parent 17bd89b commit 18036d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ HEAD
buffer sizes based on profiling, caching of handler binding for async
reads/writes, non-malloc allocators for read/write handlers, disabling of a
number of questionably useful range sanity checks in tight inner loops.
- Bug: Fix issue with const endpoint accessors (such as `get_user_agent`) not
compiling due to non-const mutex use. #292 Thank you logofive for reporting.
- Bug: Fix handler allocation crash with multithreaded io_service.
- Bug: Fixes incorrect whitespace handling in header parsing. #301 Thank you
Wolfram Schroers for reporting
Expand Down
2 changes: 1 addition & 1 deletion websocketpp/endpoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ class endpoint : public config::transport_type, public config::endpoint_base {
bool const m_is_server;

// endpoint state
mutex_type m_mutex;
mutable mutex_type m_mutex;
};

} // namespace websocketpp
Expand Down

0 comments on commit 18036d2

Please sign in to comment.