File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -177,18 +177,18 @@ void NodeTraceBuffer::ExitSignalCb(uv_async_t* signal) {
177177 // Close both flush_signal_ and exit_signal_.
178178 uv_close (reinterpret_cast <uv_handle_t *>(&buffer->flush_signal_ ),
179179 [](uv_handle_t * signal) {
180- NodeTraceBuffer* buffer =
180+ NodeTraceBuffer* buffer_for_flush =
181181 ContainerOf (&NodeTraceBuffer::flush_signal_,
182182 reinterpret_cast <uv_async_t *>(signal));
183183
184- uv_close (reinterpret_cast <uv_handle_t *>(&buffer ->exit_signal_ ),
184+ uv_close (reinterpret_cast <uv_handle_t *>(&buffer_for_flush ->exit_signal_ ),
185185 [](uv_handle_t * signal) {
186- NodeTraceBuffer* buffer =
186+ NodeTraceBuffer* buffer_for_exit =
187187 ContainerOf (&NodeTraceBuffer::exit_signal_,
188188 reinterpret_cast <uv_async_t *>(signal));
189- Mutex::ScopedLock scoped_lock (buffer ->exit_mutex_ );
190- buffer ->exited_ = true ;
191- buffer ->exit_cond_ .Signal (scoped_lock);
189+ Mutex::ScopedLock scoped_lock (buffer_for_exit ->exit_mutex_ );
190+ buffer_for_exit ->exited_ = true ;
191+ buffer_for_exit ->exit_cond_ .Signal (scoped_lock);
192192 });
193193 });
194194}
You can’t perform that action at this time.
0 commit comments