On 2014-11-25 23:37, Ola Liljedahl wrote: > Signed-off-by: Ola Liljedahl <ola.liljed...@linaro.org> > --- > Use definitions from odp_atomic_internal.h. > > platform/linux-generic/include/api/odp_rwlock.h | 4 ++- > platform/linux-generic/odp_rwlock.c | 35 > ++++++++++++------------- > 2 files changed, 20 insertions(+), 19 deletions(-) > > diff --git a/platform/linux-generic/include/api/odp_rwlock.h > b/platform/linux-generic/include/api/odp_rwlock.h > index a880f92..59cf9cc 100644 > --- a/platform/linux-generic/include/api/odp_rwlock.h > +++ b/platform/linux-generic/include/api/odp_rwlock.h > @@ -13,6 +13,8 @@ > * ODP RW Locks > */ > > +#include <odp_atomic.h> > + > #ifdef __cplusplus > extern "C" { > #endif > @@ -28,7 +30,7 @@ extern "C" { > * read lock count > 0 > */ > typedef struct { > - volatile int32_t cnt; /**< -1 Write lock, > + odp_atomic_u32_t cnt; /**< -1 Write lock, > > 0 for Read lock. */ > } odp_rwlock_t; > > diff --git a/platform/linux-generic/odp_rwlock.c > b/platform/linux-generic/odp_rwlock.c > index 2f6a255..fc78b20 100644 > --- a/platform/linux-generic/odp_rwlock.c > +++ b/platform/linux-generic/odp_rwlock.c > @@ -6,64 +6,63 @@ > > #include <stdbool.h> > #include <odp_atomic.h>
Remove? Cheers, Anders _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org http://lists.linaro.org/mailman/listinfo/lng-odp