----- On Nov 13, 2017, at 5:44 AM, Yu Yang <[email protected]> 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
> [email protected]
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers 
EfficiOS Inc. 
http://www.efficios.com 
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Reply via email to