Removed THREAD_WAIT call completely.

Simply reverse this patch to add THREAD_WAIT
This commit is contained in:
Bahadir Balban
2009-10-31 17:12:03 +02:00
parent dd5e05380c
commit 09197d1fb1
7 changed files with 11 additions and 64 deletions

View File

@@ -33,7 +33,8 @@ int exit_test(void)
} else
printf("Thread (%d) created successfully.\n", ids.tid);
#if 0
// l4_thread_switch(0);
/* Kill it */
printf("Killing Thread (%d).\n", ids.tid);
if ((ret = l4_thread_control(THREAD_DESTROY, &ids)) < 0)
@@ -41,10 +42,9 @@ int exit_test(void)
else
printf("Success: Killed Thread (%d)\n", ids.tid);
#endif
l4_thread_switch(0);
#if 0
/* Wait on it */
printf("Waiting on Thread (%d) to exit.\n", ids.tid);
if ((ret = l4_thread_control(THREAD_WAIT, &ids)) >= 0)
@@ -53,6 +53,7 @@ int exit_test(void)
printf("Error. Wait on (%d) failed. err = %d\n",
ids.tid, ret);
return 0;
#endif
out_err:
BUG();

View File

@@ -58,7 +58,7 @@ int wait_check_test(struct task_ids *ids)
int result;
/* Wait for thread to finish */
result = l4_thread_control(THREAD_WAIT, ids);
//result = l4_thread_control(THREAD_WAIT, ids);
if (result < 0) {
printf("Waiting on (%d)'s exit failed.\n", ids->tid);
return -1;