The documentation here: https://1973.beastdocs.prtest.cppalliance.org/libs/beast/doc/html/beast/ref/boost__beast__websocket__stream.html
states
Sharedobjects:Unsafe. The application must also ensure that all asynchronous operations are performed within the same implicit or explicit strand.
We are using the older io_service
. In this case, would it be okay if I instead simply synchronize access to the shared object using a mutex and lock guards? Under the lock, it may be necessary to perform async
operations like async_write
.