name decoder capture thread for easier debugging - #52
Closed
gjrtimmer wants to merge 1 commit into
Closed
Conversation
Set pthread name "dec_capture" on the decoder capture loop thread, making it identifiable in debuggers and thread listings. Based on: Keylost#15 Co-Authored-By: Andrew Reiter <madsciencetist@users.noreply.github.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sets the pthread name "dec_capture" on the decoder capture loop thread via
pthread_setname_np, making it identifiable in debuggers,htop,top -H, and/proc/[pid]/task/[tid]/comm.Changes
nvmpi_dec.cpp: addpthread_setname_np(ctx->dec_capture_loop.native_handle(), "dec_capture")after thread creation innvmpi_create_decoderContext
Split out from #15 which bundled this change with the unrelated stdout→stderr fix.
Test plan
dec_capturein thread listings (ps -Tor/proc/[pid]/task/*/comm)