Re: [vpp-dev] Question regarding pool_get/pool_put thread safety

2017-05-23 Thread 张东亚
bsolutely necessary we use spinlocks to synchronize such > things but try *really* hard not to. > > > > Chris. > > > > *From:* vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] *On > Behalf Of *??? > *Sent:* Monday, May 22, 2017 22:38 > *To:* vpp-dev@lis

Re: [vpp-dev] Question regarding pool_get/pool_put thread safety

2017-05-23 Thread Luke, Chris
Behalf Of ??? Sent: Monday, May 22, 2017 22:38 To: vpp-dev@lists.fd.io Subject: [vpp-dev] Question regarding pool_get/pool_put thread safety Hi folks, There is a pool_get and pool_put macro based on vec structure, quite a few code rely on that, however, I have a question regarding about the thread

[vpp-dev] Question regarding pool_get/pool_put thread safety

2017-05-22 Thread 张东亚
Hi folks, There is a pool_get and pool_put macro based on vec structure, quite a few code rely on that, however, I have a question regarding about the thread safety of these two APIs, I do not found any comments for them. Since pool_get may resize the vec, is there any issue if another worker thr