more threads code

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-12-06 07:20:13 +00:00
commit 1c7071040a
3 changed files with 15 additions and 23 deletions

View file

@ -122,7 +122,6 @@ public:
if (!threads) {
return SWIG_OK;
}
Printf(f_init,"\n");
Printf(f_init,"/* Initialize threading */\n");
Printf(f_init,"SWIG_PYTHON_INITIALIZE_THREADING;\n");
@ -376,6 +375,10 @@ public:
Printf(f_runtime,"#define SWIG_DIRECTORS\n");
}
if (threads) {
Printf(f_runtime,"#define SWIG_PYTHON_THREADING\n");
}
/* Set module name */
module = Copy(Getattr(n,"name"));
mainmodule = Getattr(n,"name");