You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by "bneradt (via GitHub)" <gi...@apache.org> on 2023/02/21 16:33:47 UTC

[GitHub] [trafficserver] bneradt commented on a diff in pull request #9442: Replace exclusive locks with rwlocks in hostdb

bneradt commented on code in PR #9442:
URL: https://github.com/apache/trafficserver/pull/9442#discussion_r1113308652


##########
iocore/hostdb/P_RefCountCache.h:
##########
@@ -169,7 +170,7 @@ template <class C> class RefCountCachePartition
 
   hash_type &get_map();
 
-  Ptr<ProxyMutex> lock; // Lock
+  ink_rwlock lock = PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP;

Review Comment:
   Maybe I need to since apparently freebsd/osx don't support PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP. :) 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org