mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-15 12:03:40 +03:00
Add emptiness checking to ql module
This commit is contained in:
parent
1dd24ca6d2
commit
a62b7ed928
2 changed files with 4 additions and 0 deletions
|
|
@ -18,6 +18,8 @@ struct { \
|
|||
(a_head)->qlh_first = NULL; \
|
||||
} while (0)
|
||||
|
||||
#define ql_empty(a_head) ((a_head)->qlh_first == NULL)
|
||||
|
||||
#define ql_elm_new(a_elm, a_field) qr_new((a_elm), a_field)
|
||||
|
||||
#define ql_first(a_head) ((a_head)->qlh_first)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue