id summary reporter owner description type status milestone component version severity resolution keywords cc 104 BCB6 throw EExternelException nobody Roland Schwarz "{{{ Borland C++ Builder 6 would throw an exception ( EExternelException ) in simple example: -------- example in thread document ----- Simple usage of boost::thread #include #include struct thread_alarm { thread_alarm(int secs) : m_secs(secs) { } void operator()() { boost::xtime XT; boost::xtime_get(&XT, boost::TIME_UTC); xt.sec += m_secs; boost::thread::sleep(XT); std::cout << ""alarm sounded..."" << std::endl; } int m_secs; }; int main(int argc, char* argv[]) { int secs = 5; std::cout << ""setting alarm for 5 seconds..."" << std::endl; thread_alarm alarm(secs); boost::thread thrd(alarm); thrd.join(); } ----- end of example ----- }}}" Bugs closed None None None