17c22b2ac9
Now that it is possible to resize the stack of the Genode main thread, it is not necessary anymore to create a new Genode thread as Qt main thread. Fixes #1134.
32 lines
624 B
C++
32 lines
624 B
C++
/*
|
|
* \brief main() wrapper for customizing main()'s stack size
|
|
* \author Christian Prochaska
|
|
* \date 2008-08-20
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2008-2013 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU General Public License version 2.
|
|
*/
|
|
|
|
#ifdef QT_MAIN_STACK_SIZE
|
|
|
|
#include <base/thread.h>
|
|
|
|
using namespace Genode;
|
|
|
|
extern int qt_main(int argc, char *argv[]);
|
|
|
|
#define qt_main main
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
Genode::Thread_base::myself()->stack_size(QT_MAIN_STACK_SIZE);
|
|
|
|
return qt_main(argc, argv);
|
|
}
|
|
|
|
#endif /* QT_MAIN_STACK_SIZE */
|