forked from ambrop72/badvpn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
system: BReactor_badvpn: use CAvl for timers instead of BHeap
- Loading branch information
ambrop7
committed
Jul 19, 2012
1 parent
85dab50
commit 32e27e2
Showing
3 changed files
with
54 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#define CAVL_PARAM_NAME BReactor__TimersTree | ||
#define CAVL_PARAM_FEATURE_COUNTS 0 | ||
#define CAVL_PARAM_FEATURE_KEYS_ARE_INDICES 0 | ||
#define CAVL_PARAM_FEATURE_NOKEYS 1 | ||
#define CAVL_PARAM_TYPE_ENTRY BTimer | ||
#define CAVL_PARAM_TYPE_LINK BReactor__TimersTree_link | ||
#define CAVL_PARAM_TYPE_ARG int | ||
#define CAVL_PARAM_VALUE_NULL ((BReactor__TimersTree_link)NULL) | ||
#define CAVL_PARAM_FUN_DEREF(arg, link) (link) | ||
#define CAVL_PARAM_FUN_COMPARE_ENTRIES(arg, entry1, entry2) compare_timers((entry1).ptr, (entry2).ptr) | ||
#define CAVL_PARAM_MEMBER_CHILD tree_child | ||
#define CAVL_PARAM_MEMBER_BALANCE tree_balance | ||
#define CAVL_PARAM_MEMBER_PARENT tree_parent |