
When pth switched user context it did not switch exception handlers. For example Coroutine A: try{ switch_to_B(); throw 1; } catch(int){ printf("catched in A") } Coroutine B: try{ switch_to_A(); printf("bbb"); } catch(int){ printf("catched in B") } main: create_A(); create_B(); switch_toA(); result: catched in B It was on gcc 3.4.4 under cygwin and linux@nslu2 On 4/25/06, Giovanni P. Deretta <gpderetta@gmail.com> wrote:
Do you plan make it work correctly with C++ exception handling? I've
Alexey Trenikhin wrote: tried
Gnu Pth ~ 6 month ago and user context switch caused mess in exception handlers.
Alexey What do you exactly means with correctly? What are the problems are you seeing with Pth? On witch platform?
Ideally exception handling should work int the same way as with kernel (native) threads. If that can't be done, coroutines aren't going be that useful.
-- Giovanni P. Deretta _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost