chenBright opened a new issue, #2105:
URL: https://github.com/apache/brpc/issues/2105

   ```c++
   typedef bvar::Maxer<int32_t> ConcurrencyMaxer;
   typedef bvar::Window<ConcurrencyMaxer> ConcurrencyWindow;
   struct ConcurrencyBvar {
       ConcurrencyBvar()
           : concurrency_window("timer_task_concurrency", &concurrency_maxer, 
30) {
           
       }
   
       ~ConcurrencyBvar() {
           concurrency_maxer.hide();
           concurrency_window.hide();
       }
   
       ConcurrencyBvar& operator<<(int32_t concurrency) {
           concurrency_maxer << concurrency;
   
           return *this;
       }
   
       ConcurrencyMaxer concurrency_maxer;
       ConcurrencyWindow concurrency_window;
   };
   ```
   对于ConcurrencyBvar对象,有两个疑问:
   1. ConcurrencyBvar析构是安全的吗?
   2. 
concurrency_maxer析构之后,持有concurrency_maxer指针的concurrency_window还会操作concurrency_maxer吗?


-- 
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: dev-unsubscr...@brpc.apache.org.apache.org

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


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

Reply via email to