summaryrefslogtreecommitdiff
path: root/src/atomic_ops.c
diff options
context:
space:
mode:
authorhboehm <hboehm>2008-10-22 01:12:17 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-25 16:03:24 +0400
commitd789e6049abe5f74f4e6c5793f6d3c8b6a93cf3c (patch)
treee1846b6a925ddd57994124cebfba39c05ad3261d /src/atomic_ops.c
parent5254305f6aefd027ecb1c1cacaaba2931f0cd624 (diff)
downloadlibatomic_ops-d789e6049abe5f74f4e6c5793f6d3c8b6a93cf3c.tar.gz
2008-10-21 Hans Boehm <Hans.Boehm@hp.com> (really Ivan Maidanski)
* src/atomic_ops/sysdeps/aligned_atomic_load_store.h: Fix comments. * src/atomic_ops/sysdeps/all_aligned_atomic_load_store.h: Fix comments. * src/atomic_ops/sysdeps/all_atomic_load_store.h: Fix comments. * src/atomic_ops/sysdeps/atomic_load_store.h: Fix comments. * src/atomic_ops/sysdeps/char_atomic_load_store.h: Fix comments. * src/atomic_ops/sysdeps/gcc/arm.h: Fix comments. * src/atomic_ops/sysdeps/gcc/x86.h: Fix comments. * src/atomic_ops/sysdeps/gcc/x86_64.h: Fix comments. * src/atomic_ops/sysdeps/hpc/hppa.h: Fix comments. * src/atomic_ops/sysdeps/hpc/ia64.h: Fix comments. * src/atomic_ops/sysdeps/int_aligned_atomic_load_store.h: Fix comments. * src/atomic_ops/sysdeps/int_atomic_load_store.h: Fix comments. * src/atomic_ops/sysdeps/short_aligned_atomic_load_store.h: Fix comments. * src/atomic_ops/sysdeps/short_atomic_load_store.h: Fix comments. * src/atomic_ops.c: Fix comments. * src/atomic_ops.h: Fix comments. * src/atomic_ops_stack.c: Fix comments. * src/atomic_ops_stack.h: Fix comments.
Diffstat (limited to 'src/atomic_ops.c')
-rw-r--r--src/atomic_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/atomic_ops.c b/src/atomic_ops.c
index f01b8d2..1307612 100644
--- a/src/atomic_ops.c
+++ b/src/atomic_ops.c
@@ -59,12 +59,12 @@ pthread_mutex_t AO_pt_lock = PTHREAD_MUTEX_INITIALIZER;
* Out of line compare-and-swap emulation based on test and set.
*
* We use a small table of locks for different compare_and_swap locations.
- * Before we update perform a compare-and-swap, we grap the corresponding
+ * Before we update perform a compare-and-swap, we grab the corresponding
* lock. Different locations may hash to the same lock, but since we
* never acquire more than one lock at a time, this can't deadlock.
* We explicitly disable signals while we perform this operation.
*
- * FIXME: We should probably also suppport emulation based on Lamport
+ * FIXME: We should probably also support emulation based on Lamport
* locks, since we may not have test_and_set either.
*/
#define AO_HASH_SIZE 16