trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject [trafficserver] branch master updated: Use default rwlock attributes on initialize
Date Thu, 09 Apr 2020 14:34:50 GMT
This is an automated email from the ASF dual-hosted git repository.

rrm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new d0bbc07  Use default rwlock attributes on initialize
d0bbc07 is described below

commit d0bbc078d1e0cf9864090821f00b30db1d2ccb53
Author: Masaori Koshiba <masaori@apache.org>
AuthorDate: Wed Apr 8 10:24:47 2020 +0900

    Use default rwlock attributes on initialize
---
 src/tscore/ink_rwlock.cc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/tscore/ink_rwlock.cc b/src/tscore/ink_rwlock.cc
index c181858..19f4c8e 100644
--- a/src/tscore/ink_rwlock.cc
+++ b/src/tscore/ink_rwlock.cc
@@ -24,8 +24,6 @@
 #include "tscore/ink_config.h"
 #include "tscore/ink_rwlock.h"
 
-static pthread_rwlockattr_t attr;
-
 //-------------------------------------------------------------------------
 // ink_rwlock_init
 //
@@ -34,7 +32,7 @@ static pthread_rwlockattr_t attr;
 void
 ink_rwlock_init(ink_rwlock *rw)
 {
-  int error = pthread_rwlock_init(rw, &attr);
+  int error = pthread_rwlock_init(rw, nullptr);
   if (unlikely(error != 0)) {
     ink_abort("pthread_rwlock_init(%p) failed: %s (%d)", rw, strerror(error), error);
   }


Mime
View raw message