58,6 → 58,8 |
|
#if defined CONFIG_TIMEOUT_AVL_TREE |
avltree_create(&CPU->timeout_active_tree); |
#elif defined CONFIG_TIMEOUT_FAVL_TREE |
favltree_create(&CPU->timeout_active_tree); |
#elif defined CONFIG_TIMEOUT_EXTAVL_TREE |
extavltree_create(&CPU->timeout_active_tree); |
#elif defined CONFIG_TIMEOUT_EXTAVLREL_TREE |
83,6 → 85,8 |
|
#if defined CONFIG_TIMEOUT_AVL_TREE |
avltree_node_initialize(&t->node); |
#elif defined CONFIG_TIMEOUT_FAVL_TREE |
favltree_node_initialize(&t->node); |
#elif defined CONFIG_TIMEOUT_EXTAVL_TREE |
extavltree_node_initialize(&t->node); |
#elif defined CONFIG_TIMEOUT_EXTAVLREL_TREE |
108,6 → 112,7 |
} |
|
#if defined CONFIG_TIMEOUT_AVL_TREE || \ |
defined CONFIG_TIMEOUT_FAVL_TREE || \ |
defined CONFIG_TIMEOUT_EXTAVL_TREE || \ |
defined CONFIG_TIMEOUT_EXTAVLREL_TREE |
|
114,7 → 119,7 |
/** Register timeout |
* |
* Insert timeout handler f (with argument arg) |
* to timeout ExtAVL tree and make it execute in |
* to timeout tree and make it execute in |
* time microseconds (or slightly more). |
* |
* @param t Timeout structure. |
141,10 → 146,12 |
t->node.key = us2ticks(time); |
|
/* |
* Put timeout into tree structure. |
* Insert timeout into tree structure. |
*/ |
#if defined CONFIG_TIMEOUT_AVL_TREE |
avltree_insert(&CPU->timeout_active_tree,&t->node); |
#elif defined CONFIG_TIMEOUT_FAVL_TREE |
favltree_insert(&CPU->timeout_active_tree,&t->node); |
#elif defined CONFIG_TIMEOUT_EXTAVL_TREE |
extavltree_insert(&CPU->timeout_active_tree,&t->node); |
#elif defined CONFIG_TIMEOUT_EXTAVLREL_TREE |
159,7 → 166,7 |
|
/** Unregister timeout |
* |
* Remove timeout from timeout ExtAVL tree structure. |
* Remove timeout from timeout tree structure. |
* |
* @param t Timeout to unregister. |
* |
192,6 → 199,8 |
*/ |
#if defined CONFIG_TIMEOUT_AVL_TREE |
avltree_delete(&t->cpu->timeout_active_tree,&t->node); |
#elif defined CONFIG_TIMEOUT_FAVL_TREE |
favltree_delete(&t->cpu->timeout_active_tree,&t->node); |
#elif defined CONFIG_TIMEOUT_EXTAVL_TREE |
extavltree_delete(&t->cpu->timeout_active_tree,&t->node); |
#elif defined CONFIG_TIMEOUT_EXTAVLREL_TREE |