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
thread trying to use pool_put which may refer to the old underlying vec?

Or there is some implicit coding convention to use the two APIs?

Thanks a lot.
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to