sets mutex to mutable to allow use in const accessors references #292

This commit is contained in:
Peter Thorson
2013-11-05 07:52:31 -06:00
parent 17bd89bd80
commit 18036d2b01
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -504,7 +504,7 @@ private:
bool const m_is_server;
// endpoint state
mutex_type m_mutex;
mutable mutex_type m_mutex;
};
} // namespace websocketpp