2
0
mirror of https://github.com/boostorg/redis.git synced 2026-02-09 11:22:22 +00:00
Files
redis/doc/asio_and_threads.md
Marcelo Zimbres c5ad08ecb4 Changes:
- Moves response classes to their own header.
- aedis.hpp used only to include other headers like in boost.
- Removes buffer typedef.
- Events example.
- Async example.
- Improvements in the makefile.
- Adds reconnect example.
2020-12-21 16:51:14 +01:00

347 B

A question the arises frequently is how to do multi-threading properly with ASIO. They can all be classified according to whether io_context::run() is called from multiple or a single thread.

Calling io_context::run() from one thread.

This case has a special case a single threaded app.

Calling io_context::run() from multiple threads.