Reset the internal Qt5 thread pool before forking.

[GB.QT5]
* BUG: Reset the internal Qt5 thread pool before forking.
This commit is contained in:
gambas 2021-06-05 03:13:39 +02:00
parent 67d266d79b
commit b4a13cb831

View file

@ -52,6 +52,7 @@
#include <QDesktopWidget>
#include <QPaintDevice>
#include <QLibraryInfo>
#include <QThreadPool>
#include "gb.image.h"
#include "gb.form.font.h"
@ -1262,6 +1263,11 @@ int EXPORT GB_INFO(const char *key, void **value)
}
#endif
void EXPORT GB_FORK(void)
{
delete QThreadPool::globalInstance();
}
/*#ifndef NO_X_WINDOW
extern Time qt_x_time;
#endif*/