Is it safe to just use the io_service::run method with c++11 threads, instead that with boost::thread?
Yes, I use std::thread
with boost::asio
and it works fine. I also use std::bind
instead of boost::bind
. You can find an example here
Is the boost thread implementation compatible with c++11 thread_local variables?
I don't know about that, but it should be irrelevant if you use std::thread