westonpace commented on pull request #9528:
URL: https://github.com/apache/arrow/pull/9528#issuecomment-793073338


   The handler would obtain the lock before calling `atomic_load` on the 
pointer and reset the pointer before it releases the lock.  Any call to 
`ResetSignalStopSource` would grab the lock before modifying the pointer.  This 
should ensure that the pointer obtained by the load cannot go out of scope 
while the signal handler references it and thus would never have to free.


----------------------------------------------------------------
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.

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


Reply via email to