Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 2d3ddad in mainline for kernel/generic/src/proc/thread.c


Ignore:
Timestamp:
2010-06-08T21:08:44Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
8f80c77
Parents:
c992538a
Message:

Add more *_locked() assertions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/thread.c

    rc992538a r2d3ddad  
    371371 *
    372372 * Detach thread from all queues, cpus etc. and destroy it.
    373  * Assume thread->lock is held!
    374373 *
    375374 * @param thread  Thread to be destroyed.
     
    380379void thread_destroy(thread_t *thread, bool irq_res)
    381380{
     381        ASSERT(irq_spinlock_locked(&thread->lock));
    382382        ASSERT((thread->state == Exiting) || (thread->state == Lingering));
    383383        ASSERT(thread->task);
Note: See TracChangeset for help on using the changeset viewer.