Opened 9 years ago
Last modified 9 years ago
#8586 closed Bugs
Boost Thread .join() causes exception — at Initial Version
Reported by: | Owned by: | Anthony Williams | |
---|---|---|---|
Milestone: | To Be Determined | Component: | thread |
Version: | Boost 1.53.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Hello, sorry for my bad english.
I just compiled a test example:
#include <boost/thread/thread.hpp> #include <iostream>
void hello_world() {
std::cout << "Hello from thread!" << std::endl;
}
int main() {
boost::thread my_thread(&hello_world); my_thread.join();
}
And when my_thread.join(); calls I get an exception.
Boost 1.53.0: One error: http://i.imgur.com/J2zpjQ0.png Boost 1.52.0: Two errors: http://i.imgur.com/CekLb8O.png Boost 1.51.0: No errors. Boost 1.48.0: No errors.
I use Intel C++ Compiler 13.1.1. Windows XP SP3. I compile Boost: call bjam toolset="intel" ---build-type=complete threading=multi link=static runtime-link=static