aboutsummaryrefslogtreecommitdiff
path: root/kernel/proc/kthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/proc/kthread.c')
-rw-r--r--kernel/proc/kthread.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/kernel/proc/kthread.c b/kernel/proc/kthread.c
index b837721..775be6b 100644
--- a/kernel/proc/kthread.c
+++ b/kernel/proc/kthread.c
@@ -68,9 +68,6 @@ void kthread_init()
kthread_t *kthread_create(proc_t *proc, kthread_func_t func, long arg1,
void *arg2)
{
- // NOT_YET_IMPLEMENTED("PROCS: kthread_create");
- dbg(DBG_THR, "ATTEMPT to create a new thread with proc name=%s, id=%d\n", proc->p_name, proc->p_pid);
-
kthread_t *new_thread = slab_obj_alloc(kthread_allocator);
if (new_thread == NULL)
{
@@ -102,8 +99,6 @@ kthread_t *kthread_create(proc_t *proc, kthread_func_t func, long arg1,
// put this thread on the process's thread list
list_insert_tail(&proc->p_threads, &new_thread->kt_plink);
- dbg(DBG_THR, "SUCCESFULLY created a new THREAD with proc name=%s, id=%d\n", proc->p_name, proc->p_pid);
-
return new_thread;
}
@@ -121,8 +116,6 @@ kthread_t *kthread_create(proc_t *proc, kthread_func_t func, long arg1,
*/
kthread_t *kthread_clone(kthread_t *thr)
{
- // NOT_YET_IMPLEMENTED("VM: kthread_clone");
-
kthread_t *new_thread = slab_obj_alloc(kthread_allocator);
if (new_thread == NULL)
{
@@ -197,12 +190,8 @@ void kthread_destroy(kthread_t *thr)
*/
void kthread_cancel(kthread_t *thr, void *retval)
{
- // NOT_YET_IMPLEMENTED("PROCS: kthread_cancel");
KASSERT(thr != curthr);
- // ask about the use of check_curthr_cancelled() in syscall_handler()
- dbg(DBG_THR, "Cancelling thread with proc name=%s, id=%d, status=%d\n",
- thr->kt_proc->p_name, thr->kt_proc->p_pid, (int) retval);
thr->kt_retval = (void *)retval;
sched_cancel(thr);
}
@@ -212,8 +201,5 @@ void kthread_cancel(kthread_t *thr, void *retval)
*/
void kthread_exit(void *retval)
{
- // NOT_YET_IMPLEMENTED("PROCS: kthread_exit");
- dbg(DBG_THR, "Exiting thread with proc name=%s, id=%d, status=%d\n",
- curthr->kt_proc->p_name, curthr->kt_proc->p_pid, (int) retval);
proc_thread_exiting(retval);
}