fixed callstack tracker for multithreaded apps
authorFred T. Hamster <fred@feistymeow.org>
Tue, 10 Feb 2026 20:31:33 +0000 (15:31 -0500)
committerFred T. Hamster <fred@feistymeow.org>
Tue, 10 Feb 2026 20:31:33 +0000 (15:31 -0500)
commiteb75c01edb225c38f108b2c5dc005c8d9d7216b4
treee393791731d28c0f7c295bc93367a3c5f152a423
parent412b2354e08dd482dcd6ee7be30ebda5669dd4b9
fixed callstack tracker for multithreaded apps

made the tracker thread local, so it adheres to the particular thread and keeps the stack right.
added tests for callstack tracker in the mutex test, since it already had lots of cool thread activity.
the stack tests invoke our macro, which checks the trace's validity; there's no specific other test
of the callstack tracker in test_mutex, but the current approach will add tests to the overall count
and also complain about any errors that occur.
nucleus/library/application/callstack_tracker.cpp
nucleus/library/application/callstack_tracker.h
nucleus/library/tests_application/test_callstack_tracker.cpp
nucleus/library/tests_basis/test_mutex.cpp