[SDL] SDL_rwops, threads and Android

Gabriel Jacobo gabomdq at gmail.com
Fri Feb 17 14:55:54 PST 2012


2012/2/17 Jonas Thiem <jonasthiem at googlemail.com>

> Hi,
>
> I'm currently investigating an Android crash issue when using
> SDL_rwops->read(...) to access assets. I'm initialising SDL in the main
> thread aswell as creating an SDL_rwops pointer to a file, then I'm spawning
> an extra thread and reading the SDL_rwops from there where it crashes. On a
> linux desktop the same code works fine. The mistake might be my own code,
> but to help me investigate the issue an answer to this question would be
> helpful: is SDL_rwops supposed to be thread-safe on Android?
>
> Regards,
> Jonas Thiem
>
>
The discussion in this bug report
http://bugzilla.libsdl.org/show_bug.cgi?id=1159 seems to imply that the
current Android backend is not thread safe. Please ignore the multitouch
comments in there as that has been already implemented.

-- 
Gabriel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20120217/d689fdd6/attachment-0008.htm>


More information about the SDL mailing list