[dpdk-dev] [PATCH v2] doc: update atomic operation deprecation

Thomas Monjalon thomas at monjalon.net
Mon Aug 2 19:26:03 CEST 2021


02/08/2021 19:22, Honnappa Nagarahalli:
> From: Thomas Monjalon <thomas at 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.




More information about the dev mailing list