Changeset 48d14222 in mainline for kernel/generic/src/proc/thread.c


Ignore:
Timestamp:
2007-06-04T19:50:44Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
473e693
Parents:
cb4afd8b
Message:

JoinMe → Lingering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/thread.c

    rcb4afd8b r48d14222  
    7979        "Entering",
    8080        "Exiting",
    81         "JoinMe"
     81        "Lingering"
    8282};
    8383
     
    357357void thread_destroy(thread_t *t)
    358358{
    359         ASSERT(t->state == Exiting || t->state == JoinMe);
     359        ASSERT(t->state == Exiting || t->state == Lingering);
    360360        ASSERT(t->task);
    361361        ASSERT(t->cpu);
     
    521521/** Detach thread.
    522522 *
    523  * Mark the thread as detached, if the thread is already in the JoinMe state,
    524  * deallocate its resources.
     523 * Mark the thread as detached, if the thread is already in the Lingering
     524 * state, deallocate its resources.
    525525 *
    526526 * @param t Thread to be detached.
     
    537537        spinlock_lock(&t->lock);
    538538        ASSERT(!t->detached);
    539         if (t->state == JoinMe) {
     539        if (t->state == Lingering) {
    540540                thread_destroy(t);      /* unlocks &t->lock */
    541541                interrupts_restore(ipl);
Note: See TracChangeset for help on using the changeset viewer.