Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/openssl/dist/crypto we don't yet have __...
details: https://anonhg.NetBSD.org/src/rev/4798dbb9f76a
branches: trunk
changeset: 359758:4798dbb9f76a
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 24 21:47:34 2018 +0000
description:
we don't yet have __atomic_is_lock_free
diffstat:
crypto/external/bsd/openssl/dist/crypto/threads_pthread.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r 3cd66a9f385f -r 4798dbb9f76a crypto/external/bsd/openssl/dist/crypto/threads_pthread.c
--- a/crypto/external/bsd/openssl/dist/crypto/threads_pthread.c Sat Feb 24 21:45:57 2018 +0000
+++ b/crypto/external/bsd/openssl/dist/crypto/threads_pthread.c Sat Feb 24 21:47:34 2018 +0000
@@ -150,12 +150,15 @@
int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock)
{
+#ifdef notyet
+// We don't provide yet __atomic_is_lock_free
# if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL)
if (__atomic_is_lock_free(sizeof(*val), val)) {
*ret = __atomic_add_fetch(val, amount, __ATOMIC_ACQ_REL);
return 1;
}
# endif
+#endif
if (!CRYPTO_THREAD_write_lock(lock))
return 0;
Home |
Main Index |
Thread Index |
Old Index