comparison Sources/Autogenerated/sdk_OrthancPluginFindMatcher.methods.h @ 184:f34f3a149c22 java-code-model

added class PythonThreadsAllower
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Jul 2024 15:49:05 +0200
parents e9be3c9294d4
children 55473de7694f
comparison
equal deleted inserted replaced
183:d31f216c9462 184:f34f3a149c22
16 { 16 {
17 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)"); 17 PyErr_SetString(PyExc_TypeError, "Bad types for the arguments (1 arguments expected)");
18 return NULL; 18 return NULL;
19 } 19 }
20 20
21 long value = OrthancPluginFindMatcherIsMatch(OrthancPlugins::GetGlobalContext(), self->object_, arg0.buf, arg0.len); 21 long value;
22 {
23 PythonThreadsAllower allower;
24 value = OrthancPluginFindMatcherIsMatch(OrthancPlugins::GetGlobalContext(), self->object_, arg0.buf, arg0.len);
25 }
22 PyBuffer_Release(&arg0); 26 PyBuffer_Release(&arg0);
23 return PyLong_FromLong(value); 27 return PyLong_FromLong(value);
24 } 28 }
25 29