[lttng-dev] Is it safe to use multiple lfht instances?
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Tue Nov 14 00:16:19 UTC 2017
----- On Nov 13, 2017, at 5:44 AM, Yu Yang <yyangplus at gmail.com> wrote:
> hello
> I want to implement a multi-tree using lfht in urcu, every node in the tree
> needs a lfht instance to track the children, I'm not sure if it is safe to use
> tree like this in multiple threads environments. thanks in advance.
Yes, the RCU lock-free hash table is multi-thread safe.
It is also safe to have multiple RCU lfht instances within a given process. An example
of a program doing that is lttng-tools session daemon.
Best regards,
Mathieu
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20171114/58a12f37/attachment.html>
More information about the lttng-dev
mailing list