Changeset 7509ddc in mainline for generic/src/synch/waitq.c


Ignore:
Timestamp:
2006-06-04T21:54:49Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
34dcd3f
Parents:
2cb5e64
Message:

Framework for task_kill().
Some pieces (e.g. implementation of ktask_cleanup() kernel thread and
task_destroy() function) are missing.
Changed locking order for task lock, threads_lock and thread lock from
threads_lock, thread lock, task lock to task lock, threads_lock, thread lock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/synch/waitq.c

    r2cb5e64 r7509ddc  
    312312        spinlock_lock(&THREAD->lock);
    313313
     314        if (THREAD->interrupted) {
     315                spinlock_unlock(&THREAD->lock);
     316                spinlock_unlock(&wq->lock);
     317                return ESYNCH_INTERRUPTED;
     318        }
     319
    314320        if (flags & SYNCH_FLAGS_INTERRUPTIBLE) {
    315321                /*
Note: See TracChangeset for help on using the changeset viewer.