Changes in kernel/generic/src/proc/thread.c [7ed8530:e535eeb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r7ed8530 re535eeb 1 1 /* 2 * Copyright (c) 20 10Jakub Jermar2 * Copyright (c) 2001-2004 Jakub Jermar 3 3 * All rights reserved. 4 4 * … … 409 409 410 410 /* 411 * Drop the reference to the containing task. 411 * t is guaranteed to be the very last thread of its task. 412 * It is safe to destroy the task. 412 413 */ 413 task_release(t->task); 414 if (atomic_predec(&t->task->refcount) == 0) 415 task_destroy(t->task); 414 416 415 417 slab_free(thread_slab, t); … … 434 436 spinlock_lock(&task->lock); 435 437 436 /* Hold a reference to the task. */ 437 task_hold(task); 438 atomic_inc(&task->refcount); 438 439 439 440 /* Must not count kbox thread into lifecount */
Note:
See TracChangeset
for help on using the changeset viewer.