Re: Assert failures in threads

2013-07-09 Thread Sean Kelly
On Jul 1, 2013, at 4:04 AM, Joseph Rushton Wakeling joseph.wakel...@webdrake.net wrote: I've noticed that when an assert fails inside a thread, no error message is printed and the program/thread just hangs. Is there any way to ensure that an assertion failure inside a thread does output

Re: Assert failures in threads

2013-07-09 Thread Jonathan M Davis
On Tuesday, July 09, 2013 10:39:59 Sean Kelly wrote: If you join the thread, any unhanded exception will be rethrown in the joining thread by default. What about threads which were spawned by std.concurrency? IIRC, those are never explicitly joined. Is catching Throwable in the spawned thread

Re: Assert failures in threads

2013-07-09 Thread Sean Kelly
On Jul 9, 2013, at 3:33 PM, Jonathan M Davis jmdavisp...@gmx.com wrote: On Tuesday, July 09, 2013 10:39:59 Sean Kelly wrote: If you join the thread, any unhanded exception will be rethrown in the joining thread by default. What about threads which were spawned by std.concurrency? IIRC,

Assert failures in threads

2013-07-01 Thread Joseph Rushton Wakeling
I've noticed that when an assert fails inside a thread, no error message is printed and the program/thread just hangs. Is there any way to ensure that an assertion failure inside a thread does output a message? For the purposes of my current needs, it's fine if it also brings down the whole