base: do not allow unnamed threads

fix #901
This commit is contained in:
Martin Stein
2013-10-10 17:00:03 +02:00
committed by Christian Helmuth
parent afdabe9df8
commit ee5d213c1f
41 changed files with 68 additions and 30 deletions

View File

@@ -403,7 +403,7 @@ namespace Genode {
*
* \param name thread name (for debugging)
*/
explicit Thread(const char *name = "<noname>")
explicit Thread(const char *name)
: Thread_base(name, STACK_SIZE) { }
};
}

View File

@@ -76,7 +76,7 @@ int main(int argc, char **argv)
/* construct the thread objects */
for (unsigned i = 0; i < cpus.total(); i++)
threads[i] = new (env()->heap())
Spinning_thread(cpus.location_of_index(i), "thread");
Spinning_thread(cpus.location_of_index(i), "spinning_thread");
/* wait until all threads are up and running */
for (unsigned i = 0; i < cpus.total(); i++)

View File

@@ -156,7 +156,7 @@ struct Destruct_thread : Genode::Thread<4096>
PLOG("thread: destruction completed, job done");
}
Destruct_thread(Object *obj) : obj(obj) { }
Destruct_thread(Object *obj) : Thread("object_destructor"), obj(obj) { }
};

View File

@@ -50,6 +50,7 @@ class Local_fault_handler : public Thread<4096>
Local_fault_handler(Rm_session *rm_session, Signal_receiver *receiver)
:
Thread("local_fault_handler"),
_rm_session(rm_session), _receiver(receiver)
{ }