]> git.ipfire.org Git - thirdparty/git.git/commit - trace2/tr2_tls.c
trace2: rename the thread_name argument to trace2_thread_start
authorJeff Hostetler <jeffhost@microsoft.com>
Mon, 24 Oct 2022 13:41:03 +0000 (13:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Oct 2022 19:45:25 +0000 (12:45 -0700)
commita70839cf36c9cad10e514f75fa1bec2e6180dbda
tree7d96de334f06180227192df5cac82ab3a949f709
parent8e8c5ad27a0a35f1be31af48050a8c81892c452d
trace2: rename the thread_name argument to trace2_thread_start

Rename the `thread_name` argument in `tr2tls_create_self()` and
`trace2_thread_start()` to be `thread_base_name` to make it clearer
that the passed argument is a component used in the construction of
the actual `struct tr2tls_thread_ctx.thread_name` variable.

The base name will be used along with the thread id to create a
unique thread name.

This commit does not change how the `thread_name` field is
allocated or stored within the `tr2tls_thread_ctx` structure.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trace2.c
trace2.h
trace2/tr2_tls.c
trace2/tr2_tls.h