[dpdk-users] Membership library thread safety
longtb5 at viettel.com.vn
longtb5 at viettel.com.vn
Fri Jun 1 09:09:46 CEST 2018
Hi,
I'm using rte_member in my application. I have two questions.
1. Could a rte_member_setsum be initialized on one thread and used on
another thread?
2. Are the operations (lookup, add, reset,.) atomic, or do I need to use
some kind of locking (e.g. rte_spinlock)?
I couldn't find anything in the doc. My guess is that you can init and use a
setsum on different threads just fine, but sharing a setsum among different
threads does require locking.
Thanks and best regards,
-BL
More information about the users
mailing list