projects
/
platform
/
upstream
/
libatomic_ops.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a87c786
)
generic_pthread.h (AO_or_full): rename incr parameter to value; remove tmp local...
author
Ivan Maidanski
<ivmai@mail.ru>
Wed, 3 Aug 2011 16:32:38 +0000
(20:32 +0400)
committer
Ivan Maidanski
<ivmai@mail.ru>
Wed, 3 Aug 2011 16:32:38 +0000
(20:32 +0400)
src/atomic_ops/sysdeps/generic_pthread.h
patch
|
blob
|
history
diff --git
a/src/atomic_ops/sysdeps/generic_pthread.h
b/src/atomic_ops/sysdeps/generic_pthread.h
index
55a1967
..
789218d
100644
(file)
--- a/
src/atomic_ops/sysdeps/generic_pthread.h
+++ b/
src/atomic_ops/sysdeps/generic_pthread.h
@@
-191,13
+191,10
@@
AO_int_fetch_and_add_full(volatile unsigned int *p, unsigned int incr)
#define AO_HAVE_int_fetch_and_add_full
AO_INLINE void
-AO_or_full(volatile AO_t *p, AO_t
incr
)
+AO_or_full(volatile AO_t *p, AO_t
value
)
{
- AO_t tmp;
-
pthread_mutex_lock(&AO_pt_lock);
- tmp = *p;
- *p = (tmp | incr);
+ *p |= value;
pthread_mutex_unlock(&AO_pt_lock);
}
#define AO_HAVE_or_full