-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jiba wrote:

> * Soya's functions are not thread safe, which will cause trouble if 2
> different threads call Soya function simultaneously,

Actually even Python is not thread-safe. You must lock the virtual
machine if you want to use multiple threads and carefully manage which
threads are doing what with it.

> * OpenGL context cannot be shared between 2 threads without a
> specific initialization that Soya doesn't support currently.

This is dangerous and will cause crashes due to the threads not being
aware of each other's state. Really bad idea, IMHO.

> However, it might work if ALL Soya and OpenGL calls are done by the
> same thread (in particular, soya.init() must be called by the thread
> that will perform all Soya and OpenGL calls).

Yes, that is about the only way how to do it, however still the issue of
Python's thread safety remains.

Jan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFGLRfzn11XseNj94gRArGvAJ9wX2l7WeYhliFQiKg1yuDi/+9YhwCglf3W
efmV/Jrgv+iymB4yowYMYRI=
=W7XE
-----END PGP SIGNATURE-----

_______________________________________________
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user

Reply via email to