Boost logo

Boost Users :

Subject: [Boost-users] [boost][asio] Waiting on a returned value run in another strand
From: Brian Bartman (bbartmanboost_at_[hidden])
Date: 2018-01-23 13:33:12


Hello,

I'm trying to preform an asynchronous operation in order to obtain a
connection from a pool of available connections. I'm trying to leverage
strands for two reasons, 1) I don't need locks because I can guarantee that
the connection pool access is limited to quick sequential access, and 2) I
may need to wait for connections to become available, or I may need to
actually make a connection.

I'm working with the 1.66 version of boost and I have been searching the
internet for ANY answer to this question, so far none of the examples which
I've located work any more. All of them simply fail to compile. For
example,

http://coliru.stacked-crooked.com/a/7427ec669bf0e326

This uses an older version of boost.

So how can I do this under the newest version of boost.asio?

Any help would be greatly appreciated.

-- 
thanks,
Brian Bartman. PhD


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net