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/7959d26315a8
branches: trunk
changeset: 830059:7959d26315a8
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 82e5f5f94bd4 -r 7959d26315a8 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