Opened 6 years ago

#12320 new Patches

add an example to demonstrate how to leverage sockets concurrently in multithreading scenarios

Reported by: luxiaoshuang@… Owned by: chris_kohlhoff
Milestone: Boost 1.62.0 Component: asio
Version: Boost 1.61.0 Severity: Cosmetic
Keywords: Cc:

Description

The ideal solution of leveraging sockets concurrently in multithreading scenarios should 1. not block io workers (the threads where io_service.run() is invoked), 2. be free of lock race, 3. etc.

There are many threads when you are searching this issue in google, but usable code is hard to find.

In this proposal, I offer a reference implementation to the people who wanna call async_write family in multiple threads.

Attachments (1)

12320.patch (26.7 KB ) - added by luxiaoshuang@… 6 years ago.
patch

Download all attachments as: .zip

Change History (1)

by luxiaoshuang@…, 6 years ago

Attachment: 12320.patch added

patch

Note: See TracTickets for help on using tickets.