X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Ffd-tracker%2Ffd-tracker.cpp;h=e1f9b14fbba8fa618e072d5addc422f2c5cbdaec;hb=f149493493fbd8a3efa4748832c03278c96c38ca;hp=398ec971ddd5fdf5c8e0ff61e987efbad3ac1432;hpb=2d7da3031c65c4569ff2428a7c2cad30007f3b50;p=lttng-tools.git diff --git a/src/common/fd-tracker/fd-tracker.cpp b/src/common/fd-tracker/fd-tracker.cpp index 398ec971d..e1f9b14fb 100644 --- a/src/common/fd-tracker/fd-tracker.cpp +++ b/src/common/fd-tracker/fd-tracker.cpp @@ -80,6 +80,7 @@ struct fd_tracker { struct lttng_unlinked_file_pool *unlinked_file_pool; }; +namespace { struct open_properties { int flags; LTTNG_OPTIONAL(mode_t) mode; @@ -124,7 +125,7 @@ struct unsuspendable_fd { struct rcu_head rcu_head; }; -static struct { +struct { pthread_mutex_t lock; bool initialized; unsigned long value; @@ -133,6 +134,7 @@ static struct { .initialized = false, .value = 0, }; +} /* namespace */ static int match_fd(struct cds_lfht_node *node, const void *key); static void unsuspendable_fd_destroy(struct unsuspendable_fd *entry);