Subversion Repositories HelenOS

Rev

Rev 1581 | Rev 1589 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1581 Rev 1585
Line 348... Line 348...
348
        spinlock_unlock(&task->lock);
348
        spinlock_unlock(&task->lock);
349
        slab_free(thread_slab, t);
349
        slab_free(thread_slab, t);
350
        return NULL;
350
        return NULL;
351
    }
351
    }
352
    list_append(&t->th_link, &task->th_head);
352
    list_append(&t->th_link, &task->th_head);
353
    task->refcount++;
353
    if (task->refcount++ == 0)
-
 
354
        task->main_thread = t;
354
    spinlock_unlock(&task->lock);
355
    spinlock_unlock(&task->lock);
355
 
356
 
356
    /*
357
    /*
357
     * Register this thread in the system-wide list.
358
     * Register this thread in the system-wide list.
358
     */
359
     */