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:
parent
0fd2fe23cf
commit
1c7071040a
3 changed files with 15 additions and 23 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue