static void release_QHBoxLayout(void *sipCppV,int) { QHBoxLayout *sipCpp = reinterpret_cast<QHBoxLayout *>(sipCppV); Py_BEGIN_ALLOW_THREADS if (QThread::currentThread() == sipCpp->thread()) delete sipCpp; else sipCpp->deleteLater(); Py_END_ALLOW_THREADS }