Threads problem
Alex Martelli
aleaxit at yahoo.com
Mon Aug 13 17:26:07 EDT 2001
"Tatiana Evers" <tatiana at exatas.unisinos.br> wrote in message
news:mailman.997728921.22297.python-list at python.org...
"""
I am working with Python API/C.
I have a module in C that call a Glut function. Glut function call Glut
MainLoop and this block my interactive python program.
So, I though in create a new thread to solve this, but I didn't have sucess.
Any idea ?
"""
In the C=code run by your new thread, did you Py_BEGIN_ALLOW_THREADS /
Py_END_ALLOW_THREADS ...? Otherwise, Python's global interpreter
lock nullifies your attempts at multithreading.
Alex
More information about the Python-list
mailing list