mirror of
https://github.com/drasko/codezero.git
synced 2026-02-22 06:43:14 +01:00
Removed THREAD_WAIT call completely.
Simply reverse this patch to add THREAD_WAIT
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user