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


Ignore:
Timestamp:
2007-07-29T19:17:25Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7fe9c5b
Parents:
83a5cba
Message:

Give the AVL tree walkers the possibility to take an argument.
Each walker is now supposed to return a bool value to support walk termination.

Switch over from the tasks_btree B+tree to tasks_tree AVL tree.
This makes the fix for ticket #48 complete.

File:
1 edited

Legend:

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

    r83a5cba rb76a2217  
    578578}
    579579
    580 static void thread_walker(avltree_node_t *node)
     580static bool thread_walker(avltree_node_t *node, void *arg)
    581581{
    582582        thread_t *t;
     
    601601                       
    602602        printf("\n");
     603
     604        return true;
    603605}
    604606
     
    617619            "-- ---------- ---------- ---- ---------\n");
    618620
    619         avltree_walk(&threads_tree, thread_walker);
     621        avltree_walk(&threads_tree, thread_walker, NULL);
    620622
    621623        spinlock_unlock(&threads_lock);
Note: See TracChangeset for help on using the changeset viewer.