mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-26 02:27:21 +03:00
Add move constructor to ql module
This commit is contained in:
parent
a62b7ed928
commit
4b66297ea0
2 changed files with 27 additions and 1 deletions
|
|
@ -18,6 +18,11 @@ struct { \
|
|||
(a_head)->qlh_first = NULL; \
|
||||
} while (0)
|
||||
|
||||
#define ql_move(a_head_dest, a_head_src) do { \
|
||||
(a_head_dest)->qlh_first = (a_head_src)->qlh_first; \
|
||||
(a_head_src)->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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue