X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Findex-allocator.cpp;fp=src%2Fcommon%2Findex-allocator.cpp;h=32778cd205eae16652af36770d768769db62724f;hb=f149493493fbd8a3efa4748832c03278c96c38ca;hp=1f7b3e05208d3cfb6fa60785f4db7218f57f7588;hpb=2d7da3031c65c4569ff2428a7c2cad30007f3b50;p=lttng-tools.git diff --git a/src/common/index-allocator.cpp b/src/common/index-allocator.cpp index 1f7b3e052..32778cd20 100644 --- a/src/common/index-allocator.cpp +++ b/src/common/index-allocator.cpp @@ -22,10 +22,12 @@ struct lttng_index_allocator { uint64_t nb_allocated_indexes; }; +namespace { struct lttng_index { uint64_t index; struct cds_list_head head; }; +} /* namespace */ struct lttng_index_allocator *lttng_index_allocator_create( uint64_t index_count)