Local threads ?
BERTRAND Joel <[email protected]> Thu, 14 Oct 2010 12:19:38 +0200
| Newsgroups | gmane.comp.micro-kernel.l4.l4ka.general |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I'm trying to create threads with L4 and I don't understand what is
exactly a local thread.
In pingpong.cc, three threads are created. First one, a pager, is
started by :
pager_tid = L4_GlobalId (L4_ThreadNo (roottid) + 1, 2);
L4_ThreadControl (pager_tid, L4_Myself (), scheduler_tid[0],
L4_Myself (), (void*)pager_utcb);
L4_Start (pager_tid, (L4_Word_t) pager_stack + sizeof(pager_stack)
- 32, START_ADDR (pager));
Why not ? I don't understand how version is set to 2 in L4_GlobalId().
L4_ThreadControl() created a new thread in the same address space than
roottask. This new thread has a global thread ID (and a pager must have
a global thread ID). How can I create a local thread ?
L4_ThreadControl() requires a global thread ID and I haven't found any
other function that can create a local thread.
Best regards,
JKB