Added GIL-release code into python wrappers

Added gabor_threads.py sample
This commit is contained in:
Alexander Mordvintsev
2012-03-07 11:09:27 +00:00
parent e7dda44a07
commit 58174f6ada
3 changed files with 79 additions and 0 deletions

View File

@@ -19,7 +19,9 @@ gen_template_parse_args = Template("""const char* keywords[] = { $kw_list, NULL
gen_template_func_body = Template("""$code_decl
$code_parse
{
Py_BEGIN_ALLOW_THREADS
$code_fcall;
Py_END_ALLOW_THREADS
$code_ret;
}
""")