I am try to add some test code in vpp. It works well in single-thread mode, but
I am confused when I want to use it in a multi-thread with worker threads
mode.I will use pool_get in a work thread(different work will use different
pool), and pool_put in the main thread.
When use pool_get to get a buffer, it may cause a memory resize.
If at the same time the main thread use pool_put to relese the buffer, is it
possible the main thread is operatoring in the old pool memory.
or in a extreme situation, the old memory has been alloced to other, the
pool_put will change other's memory?
For the pool or vec in vpp, is it just safe when we get and put in the same
threadindex?
Thanks
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev