Subversion Repositories HelenOS

Rev

Rev 3026 | Rev 3425 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3026 Rev 3034
Line 356... Line 356...
356
        thread_attach(t, task);
356
        thread_attach(t, task);
357
 
357
 
358
    return t;
358
    return t;
359
}
359
}
360
 
360
 
361
/** Destroy thread structure of an unattached thread.
-
 
362
 *
-
 
363
 * Thread t must only have been created and never attached.
-
 
364
 */
-
 
365
void thread_unattached_free(thread_t *t)
-
 
366
{
-
 
367
    slab_free(thread_slab, t);
-
 
368
}
-
 
369
 
-
 
370
 
-
 
371
/** Destroy thread memory structure
361
/** Destroy thread memory structure
372
 *
362
 *
373
 * Detach thread from all queues, cpus etc. and destroy it.
363
 * Detach thread from all queues, cpus etc. and destroy it.
374
 *
364
 *
375
 * Assume thread->lock is held!!
365
 * Assume thread->lock is held!!