MINOR: debug: slightly change the thread_dump_pointer signification
authorWilly Tarreau <w@1wt.eu>
Sat, 19 Oct 2024 11:53:39 +0000 (13:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 19 Oct 2024 13:54:53 +0000 (15:54 +0200)
commit6cea1c809cee7105a5fecc9769bd940775e2ff60
tree6e30f8fcadb565e60e8ed9e8daed0082678d1f8d
parent534db5cd0a8a87574a91162d6440979c1b35a336
MINOR: debug: slightly change the thread_dump_pointer signification

Now the thread_dump_pointer is returned ORed with 1 once done, or NULL
when cancelled (for now noone cancels). The goal will be to permit
the callee to provide its own pointer.

The ha_thread_dump_fill() function now returns the buffer pointer that
was used (without OR 1) or NULL, for ease of use from the caller.

(cherry picked from commit 091de0f9b2553463660a11c56598c4970d6b1066)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/debug.c