Skip to content

name decoder capture thread for easier debugging - #52

Closed
gjrtimmer wants to merge 1 commit into
Keylost:masterfrom
gjrtimmer:fix/decoder-thread-name
Closed

name decoder capture thread for easier debugging#52
gjrtimmer wants to merge 1 commit into
Keylost:masterfrom
gjrtimmer:fix/decoder-thread-name

Conversation

@gjrtimmer

@gjrtimmer gjrtimmer commented Jun 11, 2026

Copy link
Copy Markdown

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: add pthread_setname_np(ctx->dec_capture_loop.native_handle(), "dec_capture") after thread creation in nvmpi_create_decoder

Context

Split out from #15 which bundled this change with the unrelated stdout→stderr fix.

Test plan

  • Create a decoder instance and verify the thread name appears as dec_capture in thread listings (ps -T or /proc/[pid]/task/*/comm)

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>
@gjrtimmer gjrtimmer changed the title feat: name decoder capture thread for easier debugging name decoder capture thread for easier debugging Jun 11, 2026
@gjrtimmer gjrtimmer closed this Jun 14, 2026
@gjrtimmer
gjrtimmer deleted the fix/decoder-thread-name branch June 14, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant