Changeset b65caba1 in mainline


Ignore:
Timestamp:
2006-06-05T18:42:23Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d8f7362
Parents:
2569ec90
Message:

Improve comments regarding liveliness of threads and tasks.

Location:
generic/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • generic/src/ddi/ddi.c

    r2569ec90 rb65caba1  
    7676
    7777        ipl = interrupts_disable();
    78         /* Lock the task and release the lock protecting tasks_btree. */
    7978        spinlock_lock(&TASK->lock);
    8079       
  • generic/src/proc/task.c

    r2569ec90 rb65caba1  
    239239 * and interrupts must be disabled.
    240240 *
     241 * The task is guaranteed to exist after it was found in the tasks_btree as long as:
     242 * @li the tasks_lock is held,
     243 * @li the task's lock is held when task's lock is acquired before releasing tasks_lock or
     244 * @li the task's refcount is grater than 0
     245 *
    241246 * @param id Task ID.
    242247 *
  • generic/src/proc/thread.c

    r2569ec90 rb65caba1  
    549549 * interrupts must be already disabled.
    550550 *
     551 * When a thread is found in threads_btree, it is guaranteed to exist as long
     552 * as the threads_lock is held.
     553 *
    551554 * @param t Pointer to thread.
    552555 *
Note: See TracChangeset for help on using the changeset viewer.