DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Membership library thread safety
@ 2018-06-01  7:09 longtb5
       [not found] ` <D2C4A16CA39F7F4E8E384D204491D7A661454197@ORSMSX105.amr.corp.intel.com>
  0 siblings, 1 reply; 2+ messages in thread
From: longtb5 @ 2018-06-01  7:09 UTC (permalink / raw)
  To: users; +Cc: yipeng1.wang, sameh.gobriel

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
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-11  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-01  7:09 [dpdk-users] Membership library thread safety longtb5
     [not found] ` <D2C4A16CA39F7F4E8E384D204491D7A661454197@ORSMSX105.amr.corp.intel.com>
2018-06-11  9:41   ` longtb5

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).