[C++-sig] multithreading and interpreters
trigves at yahoo.com
Sun Nov 22 17:55:38 CET 2009
I'm working on project where we used boost.python (embedded).
In general I have the "modules" where each module is something like sandbox, is
isolated from others modules and run in solo thread. I want to be able to use
python (and boost python functions of course) from each module thread. Something
like that each thread could have own interpreter without need to take care of GIL and
like. Is it possible? I know there could be some problems with GIL and so. I've found in
python C API docs Py_NewInterpreter() function which could be of help (or not?).
So will this configuration work? Could be there some problems with boost.python
when using multiple threads?
More information about the Cplusplus-sig