rtems: Add environment variable for configure default thread stack size
The default stack size is too small on RTEMS. Qt uses threads internally and there is no way to change their stack size. Change-Id: I94a42c7a70c745f0b50d7051d9320edfabd1e09e Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
2a99f60cfb
commit
248e81a280
@ -171,6 +171,11 @@ QThreadPrivate::QThreadPrivate(QThreadData *d)
|
||||
// to 128K.
|
||||
#ifdef Q_OS_INTEGRITY
|
||||
stackSize = 128 * 1024;
|
||||
#elif defined(Q_OS_RTEMS)
|
||||
static bool envStackSizeOk = false;
|
||||
static const int envStackSize = qEnvironmentVariableIntValue("QT_DEFAULT_THREAD_STACK_SIZE", &envStackSizeOk);
|
||||
if (envStackSizeOk)
|
||||
stackSize = envStackSize;
|
||||
#endif
|
||||
|
||||
#if defined (Q_OS_WIN)
|
||||
|
Loading…
Reference in New Issue
Block a user