From f68b20c34d8fad795305ebf284cbbd9b3fe02781 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Sun, 6 Oct 2024 13:57:07 +0300
Subject: [PATCH 1/1] Thread: Querying name of the main thread
src/thread.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/thread.c b/src/thread.c
index 98af25b..f2acaa9 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -159,6 +159,13 @@ iBool isFinished_Thread(const iThread *d) {
}
const iString *name_Thread(const iThread *d) {
static iString *name_;
if (!name_) {
name_ = newCStr_String("main thread");
}
return name_;
return &d->name;
}
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).