Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-11-05 Thread Savolainen, Petri (Nokia - FI/Espoo)
- FI/Espoo) > Sent: Wednesday, October 28, 2015 10:55 AM > To: EXT Nicolas Morey-Chaisemartin; lng-odp@lists.linaro.org > Subject: Re: [lng-odp] [API-NEXT PATCH] api: atomic: added > atomic_is_lock_free > > > > > -Original Message- > > From: EXT Nicolas Mo

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-11-05 Thread Maxim Uvarov
On 10/27/2015 17:48, Petri Savolainen wrote: Platforms may support some uint64 operations lock-free and others not. For example, inc_64 can be natively supported but cas_64 (or max_64/min_64) not. User may be able to switch to 32 bit variables when a 64 bit operation uses locks. The same atomic

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-11-05 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of > EXT Maxim Uvarov > Sent: Thursday, November 05, 2015 11:30 AM > To: lng-odp@lists.linaro.org > Subject: Re: [lng-odp] [API-NEXT PATCH] api: atomic: added > atomic_is_lock_fr

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-11-05 Thread Maxim Uvarov
On 11/05/2015 12:58, Savolainen, Petri (Nokia - FI/Espoo) wrote: -Original Message- From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of EXT Maxim Uvarov Sent: Thursday, November 05, 2015 11:30 AM To: lng-odp@lists.linaro.org Subject: Re: [lng-odp] [API-NEXT PATCH] api

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-11-05 Thread Maxim Uvarov
Subject: Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free On 10/27/2015 17:48, Petri Savolainen wrote: Platforms may support some uint64 operations lock-free and others not. For example, inc_64 can be natively supported but cas_64 (or max_64/min_64) not. User may be able to switch

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-11-05 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: EXT Maxim Uvarov [mailto:maxim.uva...@linaro.org] > Sent: Thursday, November 05, 2015 12:26 PM > To: Savolainen, Petri (Nokia - FI/Espoo); lng-odp@lists.linaro.org > Subject: Re: [lng-odp] [API-NEXT PATCH] api: atomic: added > atomic_is_lo

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-10-28 Thread Savolainen, Petri (Nokia - FI/Espoo)
ay, October 27, 2015 5:35 PM > >> To: Ivan Khoronzhuk; Savolainen, Petri (Nokia - FI/Espoo); lng- > >> o...@lists.linaro.org > >> Subject: Re: [lng-odp] [API-NEXT PATCH] api: atomic: added > >> atomic_is_lock_free > >> > >> > >> > >&g

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-10-28 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: EXT Nicolas Morey-Chaisemartin [mailto:nmo...@kalray.eu] > Sent: Wednesday, October 28, 2015 10:23 AM > To: Savolainen, Petri (Nokia - FI/Espoo); Ivan Khoronzhuk; lng- > o...@lists.linaro.org > Subject: Re: [lng-odp] [API-NEXT PATCH]

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-10-28 Thread Nicolas Morey-Chaisemartin
Ivan Khoronzhuk; lng- >> o...@lists.linaro.org >> Subject: Re: [lng-odp] [API-NEXT PATCH] api: atomic: added >> atomic_is_lock_free >> >> >> >> On 10/28/2015 09:12 AM, Savolainen, Petri (Nokia - FI/Espoo) wrote: >>>>> Nicolas, you could define a platf

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-10-28 Thread Savolainen, Petri (Nokia - FI/Espoo)
> > Nicolas, you could define a platform specific init struct that gives user > option to tell which u64 operations will be called. If user tells that > cas/min/max_u64 are not called, you can implement everything lock-free. The > same is in git log entry: > > > > " >> The same > Everything is

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-10-28 Thread Nicolas Morey-Chaisemartin
On 10/28/2015 09:12 AM, Savolainen, Petri (Nokia - FI/Espoo) wrote: >>> Nicolas, you could define a platform specific init struct that gives user >> option to tell which u64 operations will be called. If user tells that >> cas/min/max_u64 are not called, you can implement everything lock-free.

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-10-28 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: EXT Nicolas Morey-Chaisemartin [mailto:nmo...@kalray.eu] > Sent: Wednesday, October 28, 2015 10:41 AM > To: Savolainen, Petri (Nokia - FI/Espoo); lng-odp@lists.linaro.org > Subject: Re: [lng-odp] [API-NEXT PATCH] api: atomic: added > a

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-10-27 Thread Ivan Khoronzhuk
: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free On 10/27/2015 04:16 PM, Ivan Khoronzhuk wrote: On 27.10.15 16:48, Petri Savolainen wrote: Platforms may support some uint64 operations lock-free and others not. For example, inc_64 can be natively supported but cas_64

[lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-10-27 Thread Petri Savolainen
Platforms may support some uint64 operations lock-free and others not. For example, inc_64 can be natively supported but cas_64 (or max_64/min_64) not. User may be able to switch to 32 bit variables when a 64 bit operation uses locks. The same atomic operation enum could be used for platform init

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-10-27 Thread Nicolas Morey-Chaisemartin
On 10/27/2015 04:16 PM, Ivan Khoronzhuk wrote: > > > On 27.10.15 16:48, Petri Savolainen wrote: >> Platforms may support some uint64 operations lock-free and >> others not. For example, inc_64 can be natively supported but >> cas_64 (or max_64/min_64) not. User may be able to switch to >> 32 bit

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-10-27 Thread Ivan Khoronzhuk
On 27.10.15 16:48, Petri Savolainen wrote: Platforms may support some uint64 operations lock-free and others not. For example, inc_64 can be natively supported but cas_64 (or max_64/min_64) not. User may be able to switch to 32 bit variables when a 64 bit operation uses locks. The same atomic

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-10-27 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: EXT Nicolas Morey-Chaisemartin [mailto:nmo...@kalray.eu] > Sent: Tuesday, October 27, 2015 5:35 PM > To: Ivan Khoronzhuk; Savolainen, Petri (Nokia - FI/Espoo); lng- > o...@lists.linaro.org > Subject: Re: [lng-odp] [API-NEXT PATCH]

Re: [lng-odp] [API-NEXT PATCH] api: atomic: added atomic_is_lock_free

2015-10-27 Thread Nicolas Morey-Chaisemartin
okia - FI/Espoo); lng- >> o...@lists.linaro.org >> Subject: Re: [lng-odp] [API-NEXT PATCH] api: atomic: added >> atomic_is_lock_free >> >> >> >> On 10/27/2015 04:16 PM, Ivan Khoronzhuk wrote: >>> >>> On 27.10.15 16:48, Petri Savolainen wrote: >>>&