mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
committed by
Christian Helmuth
parent
dbcb1ff480
commit
774b1f4277
@@ -442,64 +442,4 @@ class Genode::Thread
|
||||
Affinity::Location affinity() const { return _affinity; }
|
||||
};
|
||||
|
||||
|
||||
template <unsigned STACK_SIZE>
|
||||
class Genode::Thread_deprecated : public Thread
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* \param weight weighting regarding the CPU session quota
|
||||
* \param name thread name (for debugging)
|
||||
* \param type enables selection of special construction
|
||||
*/
|
||||
explicit Thread_deprecated(size_t weight, const char *name)
|
||||
: Thread(weight, name, STACK_SIZE, Type::NORMAL) { }
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* \param weight weighting regarding the CPU session quota
|
||||
* \param name thread name (for debugging)
|
||||
* \param type enables selection of special construction
|
||||
*
|
||||
* \noapi
|
||||
*/
|
||||
explicit Thread_deprecated(size_t weight, const char *name, Type type)
|
||||
: Thread(weight, name, STACK_SIZE, type) { }
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* \param weight weighting regarding the CPU session quota
|
||||
* \param name thread name (for debugging)
|
||||
* \param cpu_session thread created via specific cpu session
|
||||
*
|
||||
* \noapi
|
||||
*/
|
||||
explicit Thread_deprecated(size_t weight, const char *name,
|
||||
Cpu_session * cpu_session)
|
||||
: Thread(weight, name, STACK_SIZE, Type::NORMAL, cpu_session) { }
|
||||
|
||||
/**
|
||||
* Shortcut for 'Thread(DEFAULT_WEIGHT, name, type)'
|
||||
*
|
||||
* \noapi
|
||||
*/
|
||||
explicit Thread_deprecated(const char *name, Type type = NORMAL)
|
||||
: Thread(Weight::DEFAULT_WEIGHT, name, STACK_SIZE, type) { }
|
||||
|
||||
/**
|
||||
* Shortcut for 'Thread(DEFAULT_WEIGHT, name, cpu_session)'
|
||||
*
|
||||
* \noapi
|
||||
*/
|
||||
explicit Thread_deprecated(const char *name, Cpu_session * cpu_session)
|
||||
: Thread(Weight::DEFAULT_WEIGHT, name, STACK_SIZE,
|
||||
Type::NORMAL, cpu_session)
|
||||
{ }
|
||||
};
|
||||
|
||||
#endif /* _INCLUDE__BASE__THREAD_H_ */
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
namespace Genode { class Irq_object; }
|
||||
|
||||
class Genode::Irq_object : public Thread_deprecated<4096> {
|
||||
class Genode::Irq_object : public Thread {
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -163,7 +163,7 @@ class Genode::Pager_object : public Object_pool<Pager_object>::Entry
|
||||
|
||||
|
||||
class Genode::Pager_entrypoint : public Object_pool<Pager_object>,
|
||||
public Thread_deprecated<PAGER_EP_STACK_SIZE>
|
||||
public Thread
|
||||
{
|
||||
private:
|
||||
|
||||
@@ -183,7 +183,8 @@ class Genode::Pager_entrypoint : public Object_pool<Pager_object>,
|
||||
*/
|
||||
Pager_entrypoint(Rpc_cap_factory &cap_factory)
|
||||
:
|
||||
Thread_deprecated<PAGER_EP_STACK_SIZE>("pager_ep"),
|
||||
Thread(Weight::DEFAULT_WEIGHT, "pager_ep", PAGER_EP_STACK_SIZE,
|
||||
Type::NORMAL),
|
||||
_cap_factory(cap_factory)
|
||||
{ start(); }
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ extern unsigned char __initial_stack_base[];
|
||||
/**
|
||||
* The first thread in a program
|
||||
*/
|
||||
class Main_thread : public Thread_deprecated<MAIN_THREAD_STACK_SIZE>
|
||||
class Main_thread : public Thread
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -67,7 +67,8 @@ class Main_thread : public Thread_deprecated<MAIN_THREAD_STACK_SIZE>
|
||||
*/
|
||||
Main_thread(bool reinit)
|
||||
:
|
||||
Thread_deprecated("main", reinit ? REINITIALIZED_MAIN : MAIN)
|
||||
Thread(Weight::DEFAULT_WEIGHT, "main", MAIN_THREAD_STACK_SIZE,
|
||||
reinit ? Type::REINITIALIZED_MAIN : Type::MAIN)
|
||||
{ }
|
||||
|
||||
/**********************
|
||||
|
||||
@@ -84,9 +84,9 @@ class Timer::Threaded_time_source : public Genode::Time_source,
|
||||
|
||||
virtual Result_of_wait_for_irq _wait_for_irq() = 0;
|
||||
|
||||
/***********************
|
||||
** Thread_deprecated **
|
||||
***********************/
|
||||
/************
|
||||
** Thread **
|
||||
************/
|
||||
|
||||
void entry() override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user