02/08/2021 19:22, Honnappa Nagarahalli: > From: Thomas Monjalon <tho...@monjalon.net> > > 23/07/2021 11:49, Joyce Kong: > > Considering all the questions regarding usage of atomics, I still think we > > need a > > documentation about their correct use. > > I think few things to document are: > 1) Use of __atomic_add_fetch vs __atomic_fetch_add > 2) Using __ATOMIC_RELAXED for statistics > 3) Using rte_atomic_thread_fence API
That's a good list. Let's start with that please. I would like an explanation about when full barrier may be used.