Re: [dpdk-dev] [PATCH 1/2] eal/windows: add pthread mutex lock

2020-09-27 Thread Suanming Mou
Hi Dmitry, > -Original Message- > From: Dmitry Kozlyuk > Sent: Sunday, September 27, 2020 11:57 PM > To: Suanming Mou > Cc: Narcisa Ana Maria Vasile ; Dmitry Malloy > ; Pallavi Kadam ; > dev@dpdk.org > Subject: Re: [PATCH 1/2] eal/windows: add pthread mutex lock > > Hi Suanming, > > Th

Re: [dpdk-dev] [PATCH 1/2] eal/windows: add pthread mutex lock

2020-09-27 Thread Dmitry Kozlyuk
Hi Suanming, There's a remark in patch 2/2 and cover letter: > If no lock contention > with the added rte flow level mutex, the mutex only does the atomic > increasing in pthread_mutex_lock() and decreasing in > pthread_mutex_unlock(). No futex() syscall will be involved. Is this property import

[dpdk-dev] [PATCH 1/2] eal/windows: add pthread mutex lock

2020-09-27 Thread Suanming Mou
Add pthread mutex lock as it is needed for the thread safe rte flow functions. Signed-off-by: Suanming Mou --- lib/librte_eal/windows/include/pthread.h | 46 1 file changed, 46 insertions(+) diff --git a/lib/librte_eal/windows/include/pthread.h b/lib/librte_eal