
8 Mar
2011
8 Mar
'11
6:57 p.m.
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.