diff options
| author | Olivier Houchard <cognet@FreeBSD.org> | 2005-04-07 22:06:05 +0000 |
|---|---|---|
| committer | Olivier Houchard <cognet@FreeBSD.org> | 2005-04-07 22:06:05 +0000 |
| commit | e0d6cac076e67971fa4ffa99d8d05659ea1aac15 (patch) | |
| tree | a7a132fcb03b58da77324c636dadc7fe0ad7cb73 /lib/libpthread | |
| parent | 2204e78f5e9ff885fcc35462fa41cb1e81c2e7f6 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread')
| -rw-r--r-- | lib/libpthread/arch/arm/include/atomic_ops.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/libpthread/arch/arm/include/atomic_ops.h b/lib/libpthread/arch/arm/include/atomic_ops.h index 1ee5d80c95d4..3a209b3faf17 100644 --- a/lib/libpthread/arch/arm/include/atomic_ops.h +++ b/lib/libpthread/arch/arm/include/atomic_ops.h @@ -51,18 +51,3 @@ atomic_swap32(intptr_t *dst, intptr_t val, intptr_t *res) atomic_swap32((intptr_t *)d, (intptr_t)v, (intptr_t *)r) #endif -static inline u_int32_t -atomic_cmpset_32(volatile u_int32_t *p, u_int32_t cmpval, u_int32_t newval) -{ - kse_critical_t crit = _kse_critical_enter(); - int ret; - - if (*p == cmpval) { - *p = newval; - ret = 1; - } else - ret = 0; - _kse_critical_leave(crit); - return (ret); -} - |
