On Sep 7, 3:41 pm, Graham Dumpleton <graham.dumple...@gmail.com> wrote: > On Sep 7, 3:42 pm, sturlamolden <sturlamol...@yahoo.no> wrote: > interpreters. The simplified GIL state API you mentioned only works > for threads operating in the main (first) interpreter created within > the process.
I modified my program to have Py_Initialize and compilation of one Python function done in main() thread. Then I am calling only that function in callPyFunction() thread. But, this thread does not come out of PyGILState_Ensure() function. > The OP can do what they want, but they need to user lower level > routines for creating their own thread state objects and acquiring the > GIL against them. > > Graham What are the "lower level routines" for creating own thread state objects & acquiring GILs. Also, where can I find more information about those routines? Please guide. Thanks. -- http://mail.python.org/mailman/listinfo/python-list