[pylucene-dev] patch JvAttachCurrentThread
xav4django
xav4django at yahoo.fr
Mon Apr 2 11:40:50 PDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> What thread problem does it correct ?
> Can one use threads without PyLucene.PythonThread now ?
Yes
When I use django shell, with a
from threading import Thread
sample here :
http://www.1et0.org/admin/db/pylucene/trypatch/testthread.py : bug
http://www.1et0.org/admin/db/pylucene/trypatch/testthread3.py : is ok
>> +static PyObject *JvAttachCurrentThread1(void){
>> + JvCreateJavaVM(NULL);
>> + JvAttachCurrentThread(NULL, NULL);
>> + return Py_None;
>> +}
>
> You shouldn't need to call JvCreateJavaVM() again. It's already called
> in PyLucene's in init at import time.
Ok, I will try tomorrow, I must go now.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGEU4y4dg3EDuiPUcRAr+5AJ9FSfhUnba0X/NzItuktd21wk3Y+ACdFn3m
vXJYg4IhDyki/88xtz5vbSc=
=yQQ4
-----END PGP SIGNATURE-----
More information about the pylucene-dev
mailing list