Chris,That's cool! I played with it on my FreeBSD.I also tried it on OpenBSD. It didn't compile because ECANCELED is not defined. I changed it to something else and some samples worked! I noticed that some examples use boost.threads but they can also run in single-threaded mode. Since OpenBSD's gcc is single-threaded, I suggest not to force multi-threading where not required.I should have posted it to boost-devel but I never have time to prepare a patch.
Hi Alexander,I suspect that the right place to define ECANCELED (if it's not otherwise defined) is in boost/cerrno.hpp. It's supposed to be available under POSIX anyway.I'm not familiar with bjam stuff, but I'll see what I can do with the threading stuff in the build. Probably after I release asio 0.3.8 though.
Post a Comment