Embed python in multi-thread environment
arlo.maillist at ozmaker.com
Sun Jun 9 17:28:02 CEST 2002
i've tried to embed python in multi-thread application( written in c++)
the flow is:
2. create thread to handle different clients.
3. in thread func, use Python C API to import my python script, and use
to call python function ( just passing socket descriptor which got
from accept() to this function)
but when it just one client, it works perfect, but when more than one
client, it core dumped.
it seems i can't call PyObject_CallObject twice at the same process?
More information about the Python-list