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:
parent
419b92a1d5
commit
08a24c7927
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user