mirror of
https://github.com/drasko/codezero.git
synced 2026-02-28 09:43:14 +01:00
Simultaneous exit/thread_destroy working
Reiterating again to simplify: Working: - Pager issues destroy, client also issues exit they work in sync. Missing - Pager killing itself - Pager killing all children while killing itself - Pager waiting on children
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
|
||||
int exit_test_thread(void *arg)
|
||||
{
|
||||
l4_thread_switch(0);
|
||||
l4_exit(0);
|
||||
return 0;
|
||||
}
|
||||
@@ -38,11 +39,11 @@ int exit_test(void)
|
||||
/* Kill it */
|
||||
printf("Killing Thread (%d).\n", ids.tid);
|
||||
if ((ret = l4_thread_control(THREAD_DESTROY, &ids)) < 0)
|
||||
printf("Error: Killing Thread (%d)\n", ids.tid);
|
||||
printf("Error: Killing Thread (%d), err = %d\n", ids.tid, ret);
|
||||
else
|
||||
printf("Success: Killed Thread (%d)\n", ids.tid);
|
||||
|
||||
|
||||
return 0;
|
||||
|
||||
#if 0
|
||||
/* Wait on it */
|
||||
|
||||
Reference in New Issue
Block a user