Changeset 7ed8530 in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2010-05-02T10:49:19Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9150781
- Parents:
- 278b4a30
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r278b4a30 r7ed8530 1 1 /* 2 * Copyright (c) 20 01-2004Jakub Jermar2 * Copyright (c) 2010 Jakub Jermar 3 3 * All rights reserved. 4 4 * … … 409 409 410 410 /* 411 * t is guaranteed to be the very last thread of its task. 412 * It is safe to destroy the task. 411 * Drop the reference to the containing task. 413 412 */ 414 if (atomic_predec(&t->task->refcount) == 0) 415 task_destroy(t->task); 413 task_release(t->task); 416 414 417 415 slab_free(thread_slab, t); … … 436 434 spinlock_lock(&task->lock); 437 435 438 atomic_inc(&task->refcount); 436 /* Hold a reference to the task. */ 437 task_hold(task); 439 438 440 439 /* Must not count kbox thread into lifecount */
Note:
See TracChangeset
for help on using the changeset viewer.