comparison Sources/Autogenerated/sdk_OrthancPluginFindAnswers.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 OrthancPluginErrorCode code = OrthancPluginFindAddAnswer(OrthancPlugins::GetGlobalContext(), self->object_, arg0.buf, arg0.len); 21 OrthancPluginErrorCode code;
22 {
23 PythonThreadsAllower allower;
24 code = OrthancPluginFindAddAnswer(OrthancPlugins::GetGlobalContext(), self->object_, arg0.buf, arg0.len);
25 }
22 PyBuffer_Release(&arg0); 26 PyBuffer_Release(&arg0);
23 27
24 if (code == OrthancPluginErrorCode_Success) 28 if (code == OrthancPluginErrorCode_Success)
25 { 29 {
26 Py_INCREF(Py_None); 30 Py_INCREF(Py_None);
44 return NULL; 48 return NULL;
45 } 49 }
46 50
47 51
48 52
49 OrthancPluginErrorCode code = OrthancPluginFindMarkIncomplete(OrthancPlugins::GetGlobalContext(), self->object_); 53 OrthancPluginErrorCode code;
54 {
55 PythonThreadsAllower allower;
56 code = OrthancPluginFindMarkIncomplete(OrthancPlugins::GetGlobalContext(), self->object_);
57 }
50 58
51 59
52 if (code == OrthancPluginErrorCode_Success) 60 if (code == OrthancPluginErrorCode_Success)
53 { 61 {
54 Py_INCREF(Py_None); 62 Py_INCREF(Py_None);