genode/repos/libports/include/qt5/genode/thread_qt.h
Christian Prochaska 17c22b2ac9 Qt5: use the Genode main thread
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.
2014-06-06 14:54:08 +02:00

33 lines
674 B
C++

/*
* \brief Thread with preconfigured stack size
* \author Christian Prochaska
* \date 2008-06-11
*/
/*
* 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.
*/
#ifndef _INCLUDE__BASE__THREAD_QT_H_
#define _INCLUDE__BASE__THREAD_QT_H_
#include <base/thread.h>
enum { DEFAULT_STACK_SIZE = 4096*100 };
namespace Genode {
class Thread_qt : public Thread<DEFAULT_STACK_SIZE>
{
public:
explicit Thread_qt(const char *name = "Qt <noname>")
: Thread<DEFAULT_STACK_SIZE>(name) { }
};
}
#endif /* _INCLUDE__BASE__THREAD_QT_H_ */