This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new ab668877 Remove the unused INVALID_PTHREAD_KEY (#2930)
ab668877 is described below

commit ab66887755eb254d7e5ebfa61e24eab8d3ec9f93
Author: Bright Chen <chenguangmin...@foxmail.com>
AuthorDate: Mon Mar 31 10:27:31 2025 +0800

    Remove the unused INVALID_PTHREAD_KEY (#2930)
---
 src/butil/containers/doubly_buffered_data.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/butil/containers/doubly_buffered_data.h 
b/src/butil/containers/doubly_buffered_data.h
index 5c97038b..5aacece3 100644
--- a/src/butil/containers/doubly_buffered_data.h
+++ b/src/butil/containers/doubly_buffered_data.h
@@ -174,8 +174,6 @@ private:
     pthread_mutex_t _modify_mutex{};
 };
 
-static const pthread_key_t INVALID_PTHREAD_KEY = (pthread_key_t)-1;
-
 template <typename T, typename TLS>
 class DoublyBufferedDataWrapperBase {
 public:


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to