Delete global QThreadPool object on fork only if QT version is at least 5.15.0.

[GB.QT5]
* BUG: Delete global QThreadPool object on fork only if QT version is at least 5.15.0.
This commit is contained in:
gambas 2021-06-13 22:53:27 +02:00
parent 419b92a1d5
commit 08a24c7927

View File

@ -1263,10 +1263,12 @@ int EXPORT GB_INFO(const char *key, void **value)
}
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
void EXPORT GB_FORK(void)
{
delete QThreadPool::globalInstance();
}
#endif
/*#ifndef NO_X_WINDOW
extern Time qt_x_time;