mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +03:00
Add empty test and concat for typed list
This commit is contained in:
parent
f28cc2bc87
commit
2bb8060d57
1 changed files with 8 additions and 0 deletions
|
|
@ -42,6 +42,14 @@ list_type##_replace(list_type##_t *list, el_type *to_remove, \
|
|||
static inline void \
|
||||
list_type##_remove(list_type##_t *list, el_type *item) { \
|
||||
ql_remove(&list->head, item, linkage); \
|
||||
} \
|
||||
static inline bool \
|
||||
list_type##_empty(list_type##_t *list) { \
|
||||
return ql_empty(&list->head); \
|
||||
} \
|
||||
static inline void \
|
||||
list_type##_concat(list_type##_t *list_a, list_type##_t *list_b) { \
|
||||
ql_concat(&list_a->head, &list_b->head, linkage); \
|
||||
}
|
||||
|
||||
#endif /* JEMALLOC_INTERNAL_TYPED_LIST_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue