
26 Mar
2007
26 Mar
'07
9:17 p.m.
On Mar 26, 2007, at 5:03 PM, Roland Schwarz wrote:
Howard Hinnant wrote:
t.cancel() is the same as t.raise(std::thread_canceled)
But semantics of cancel is different, no? Cancel is expected to bring the thread down, yes?
Not so raise, it just is sending kind of a signal to the thread. (The slot being catch clause).
I swear (lays hand on backup disk) on my backup disk, all N2184 (and N2178 as I understand it) wants of C++ cancellation is to request that the target thread (whenever it gets around to it, if ever) throw a normal C++ exception, which the target thread is free to subsequently catch, swallow and digest. :-) -Howard