[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    Re: [Boost-users] Build boost asio http server examples single threaded using c++03
From:       Gavin Lambert via Boost-users <boost-users () lists ! boost ! org>
Date:       2018-12-19 5:14:37
Message-ID: bd3aa880-67e0-5646-b4ce-c4f77ef77ed2 () mirality ! co ! nz
[Download RAW message or body]

On 19/12/2018 03:11, Eric Curtin wrote:
> I was wondering if anyone could help me out building all the boost
> asio http server examples from:
> 
> https://github.com/boostorg/asio/tree/develop/example/cpp03/http
> 
> But catch is, I need to use c++03/98, single threaded without
> dependencies on std::thread, boost::thread or posix threads. I also
> need static linking to all the other boost libraries. Also want to
> compile with g++ -O3 -flto on x86_64 Linux. How can I build these
> examples like this?

It's not possible.  Asio internally uses mutexes (which require some 
kind of threading library).  Additionally in order to implement certain 
kinds of async operations, Asio actually needs to create a small number 
of worker threads.
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic