You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "haolujun (via GitHub)" <gi...@apache.org> on 2023/04/11 03:41:10 UTC

[GitHub] [pulsar-client-cpp] haolujun commented on issue #248: logging thread_local error when thread exit [Bug]

haolujun commented on issue #248:
URL: https://github.com/apache/pulsar-client-cpp/issues/248#issuecomment-1502642939

   The Code like bellow:
   `
   class OuterClient {
      public:
      OuterClient(const std::string& service_url) : client_(service_url) {}
      ~OuterClient() {
         client_.close(); //may core
      }
      pulsar::Client client_;
   };
   
   std::unique_ptr<OuterClient>  client;
   
   int main() {
      client.reset(new OuterClient("xxxx"));
      return 0;
   }
   
   `
   


-- 
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: commits-unsubscribe@pulsar.apache.org

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