async_resolver throws exception with ASIO_DISABLE_THREADS
Brought to you by:
chris_kohlhoff
asio::ip::tcp::async_resolver throws "thread: Operation not supported exception" when compiled with "-DASIO_DISABLE_THREADS". However, when compiled without this option the resolver appears to perform as expected.
The problem was seen with asio-1.4.8 as well as asio-1.5.3.
Test program with more comments in it is attached.
Test program to reproduce the problem
That's correct. As noted here:
http://think-async.com/Asio/boost_asio_1_5_3/doc/html/boost_asio/overview/implementation.html
a background thread is required to emulated asynchronous resolution. If you disable threads then that functionality cannot be supported.