Boost logo

Boost Users :

Subject: Re: [Boost-users] Catching boost::thread_interrupted
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-09-08 12:12:20


AMDG

Dr. Roland Bock wrote:
> Hi,
>
> I am using gcc 4.2.3 on Ubuntu8.04(64bit):
>
> $ g++ --version
> g++ (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
>
> $ uname -a
> Linux rbock 2.6.24-19-generic #1 SMP Wed Aug 20 17:53:40 UTC 2008
> x86_64 GNU/Linux
>
>
> Catching by reference does not change the result.

I can't reproduce this on cygwin. You might try to
find out what exception /is/ being thrown.

   catch(std::exception& e) {
      boost::mutex::scoped_lock lock(mutex_);
      cerr << "Thread " << boost::this_thread::get_id()
             << " caught std::exception" << e.what() << endl;
   }

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net