]> git.hungrycats.org Git - bees/commitdiff
thread: don't supply a generic thread status
authorZygo Blaxell <bees@furryterror.org>
Fri, 19 Jun 2026 16:48:29 +0000 (12:48 -0400)
committerZygo Blaxell <bees@furryterror.org>
Sat, 5 Sep 2026 04:03:57 +0000 (00:03 -0400)
This allows inactive threads to disappear from the threads report.
This may be useful for the numerous idle reporter threads, which
often report only their own activity.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees-thread.cc

index 62e80d8185255c9193381c71ffdfe9546ac02fd4..262452263f52f9de8fe82d9834f7091b9b201e9b 100644 (file)
@@ -17,7 +17,9 @@ BeesThread::exec(function<void()> func)
        m_thread_ptr = make_shared<thread>([this, func]() {
                BeesNote::set_name(m_name);
                BEESLOGDEBUG("Starting thread " << m_name);
-               BEESNOTE("thread function");
+               // Better to have the entire thread disappear than to have
+               // it take up space in the threads report with no content
+               // BEESNOTE("thread function");
                Timer thread_time;
                catch_all([&]() {
                        func();