From e5d5b625f16c3c3df5a3fdcc114a6694d82ab6e8 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 5 Jan 2025 09:46:16 -0800 Subject: platform: remove reader/writer locks The only thing using this was the transport lookups, but as those transports are now fully initialized in nng_init, we no longer need to lock that at all. --- src/platform/posix/posix_impl.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/platform/posix/posix_impl.h') diff --git a/src/platform/posix/posix_impl.h b/src/platform/posix/posix_impl.h index b6435353..2229f17c 100644 --- a/src/platform/posix/posix_impl.h +++ b/src/platform/posix/posix_impl.h @@ -65,15 +65,6 @@ struct nni_plat_mtx { PTHREAD_MUTEX_INITIALIZER \ } -struct nni_rwlock { - pthread_rwlock_t rwl; -}; - -#define NNI_RWLOCK_INITIALIZER \ - { \ - PTHREAD_RWLOCK_INITIALIZER \ - } - // No static form of CV initialization because of the need to use // attributes to set the clock type. struct nni_plat_cv { -- cgit v1.2.3-70-g09d2