swebb2066 commented on PR #774:
URL: https://github.com/apache/logging-log4cxx/pull/774#issuecomment-6091942818

   > This seems unlikely to happen, but could there be a threading issue if two 
threads are using the same object at once? example:
   > 
   > Thread A is doing processing with a shared_ptrand the ref count is 1
   > Thread B is doing processing with a shared_ptr but doesn't have the ref 
count incrementing
   
   Providing a shared_ptr reference to another thread is always undefined 
behaviour. Passing a shared_ptr reference to a function is not the same. 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to