diff options
author | Jeff Hostetler <jeffhost@microsoft.com> | 2022-10-24 16:41:05 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-10-24 22:45:26 +0300 |
commit | 24a4c45da9e1255df43a87bec1f646b1efa69209 (patch) | |
tree | 349f564bf5bac27bc6b2049194bb17b606eee449 /trace2.h | |
parent | 31247936041318d441de5a2681f9bcb79459c726 (diff) |
trace2: convert ctx.thread_name from strbuf to pointer
Convert the `tr2tls_thread_ctx.thread_name` field from a `strbuf`
to a "const char*" pointer.
The `thread_name` field is a constant string that is constructed when
the context is created. Using a (non-const) `strbuf` structure for it
caused some confusion in the past because it implied that someone
could rename a thread after it was created. That usage was not
intended. Change it to a const pointer to make the intent more clear.
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace2.h')
0 files changed, 0 insertions, 0 deletions