[gccsdk] GCC4 crash with SDL threading

Alex Waugh alex at alexwaugh.com
Mon Jul 7 14:50:09 PDT 2008


Adam <lists at snowstone.org.uk> wrote:

> In message <BLU141-W2284E23319544EFA19084DF0AD0 at phx.gbl>, alan buckley  wrote:
> 
> > If it should, is there anyway I can test for context switching being
> > disabled in C code
> 
> I'd like to second this request. As previously discussed on this list, I
> use Wimp_StartTask and I have to surround it with
> __pthread_stop/start_ticker() depending on exactly when it's called.
> Being able to determine whether context switching is enabled would be
> useful. Is there a straightforward way this is achieved for Wimp_Poll?

For Wimp_Poll it installs wimp filters, but I'm not aware of any
equivalent method of trapping Wimp_StartTask so it has to be done
manually.
However it should be possible to create more user friendly functions
that can cope with restoring the previous state.

Alex

-- 
Alex Waugh                                           alex at alexwaugh.com

PHP, Roots, Subversion, WebJames and more from http://www.alexwaugh.com/




More information about the gcc mailing list