Reset the internal Qt5 thread pool before forking.
[GB.QT5] * BUG: Reset the internal Qt5 thread pool before forking.
This commit is contained in:
parent
67d266d79b
commit
b4a13cb831
1 changed files with 6 additions and 0 deletions
|
@ -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*/
|
||||
|
|
Loading…
Reference in a new issue