Re: [ovs-dev] [PATCHv16 1/2] ovs-thread: Add pthread spin lock support.

2019-07-16 Thread Ilya Maximets
On 13.07.2019 2:50, William Tu wrote: The patch adds the basic spin lock functions: ovs_spin_{lock, try_lock, unlock, init, destroy}. OSX does not support pthread spin lock, so make it linux only. Signed-off-by: William Tu --- include/openvswitch/thread.h | 22 ++ lib/ovs

Re: [ovs-dev] [PATCHv16 1/2] ovs-thread: Add pthread spin lock support.

2019-07-15 Thread William Tu
On Mon, Jul 15, 2019 at 11:54 AM Ben Pfaff wrote: > > On Mon, Jul 15, 2019 at 05:28:44PM +0300, Ilya Maximets wrote: > > On 13.07.2019 2:50, William Tu wrote: > > > The patch adds the basic spin lock functions: > > > ovs_spin_{lock, try_lock, unlock, init, destroy}. > > > OSX does not support pthr

Re: [ovs-dev] [PATCHv16 1/2] ovs-thread: Add pthread spin lock support.

2019-07-15 Thread Ben Pfaff
On Mon, Jul 15, 2019 at 05:28:44PM +0300, Ilya Maximets wrote: > On 13.07.2019 2:50, William Tu wrote: > > The patch adds the basic spin lock functions: > > ovs_spin_{lock, try_lock, unlock, init, destroy}. > > OSX does not support pthread spin lock, so make it > > linux only. > > IIUC, pthread sp

Re: [ovs-dev] [PATCHv16 1/2] ovs-thread: Add pthread spin lock support.

2019-07-15 Thread Ilya Maximets
On 13.07.2019 2:50, William Tu wrote: > The patch adds the basic spin lock functions: > ovs_spin_{lock, try_lock, unlock, init, destroy}. > OSX does not support pthread spin lock, so make it > linux only. IIUC, pthread spinlock requires some specific glibc verions (>= 2.2) so it could be not suppo

[ovs-dev] [PATCHv16 1/2] ovs-thread: Add pthread spin lock support.

2019-07-12 Thread William Tu
The patch adds the basic spin lock functions: ovs_spin_{lock, try_lock, unlock, init, destroy}. OSX does not support pthread spin lock, so make it linux only. Signed-off-by: William Tu --- include/openvswitch/thread.h | 22 ++ lib/ovs-thread.c | 31 +++