Boost logo

Boost Users :

Subject: Re: [Boost-users] Thread question.... detecting deadlocks?
From: Igor R (boost.lists_at_[hidden])
Date: 2011-03-08 13:57:05


> I was just wondering if there was some quick #define to
> enable a debugging mode where I'd get an exception or
> something I could log when that happened, as opposed to
> the program just locking up.

You can use timed_lock(), time_wait() etc in debug mode. Set the time
period to some reasonable value and raise an exception if the wait
failes.


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