Boost logo

Boost :

From: Alexey Trenikhin (alexey.trenikhin_at_[hidden])
Date: 2006-04-28 01:43:17


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_at_nslu2

On 4/25/06, Giovanni P. Deretta <gpderetta_at_[hidden]> wrote:
>
> Alexey Trenikhin wrote:
> > Do you plan make it work correctly with C++ exception handling? I've
> 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
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk