Changeset 2cb5e64 in mainline for generic/src/main/kinit.c


Ignore:
Timestamp:
2006-06-04T19:47:36Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7509ddc
Parents:
c4e4507
Message:

Make use of thread_join_timeout() and thread_detach() in kernel.

Improved comments in slab.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/main/kinit.c

    rc4e4507 r2cb5e64  
    8383        task_t *utask;
    8484
     85        /*
     86         * Detach kinit as nobody will call thread_join_timeout() on it.
     87         */
     88        thread_detach(THREAD);
     89
    8590        interrupts_disable();
    8691
     
    99104                        spinlock_unlock(&t->lock);
    100105                        thread_ready(t);
    101                         waitq_sleep(&kmp_completion_wq);
    102106                }
    103                 else panic("thread_create/kmp\n");
     107                else {
     108                        panic("thread_create/kmp\n");
     109                }
     110                thread_join(t);
    104111        }
    105112#endif /* CONFIG_SMP */
Note: See TracChangeset for help on using the changeset viewer.