tg2sip/buildenv/tdlib_threadname.patch

13 lines
419 B
Diff
Raw Permalink Normal View History

2018-10-04 07:07:36 +00:00
diff --git a/tdutils/td/utils/port/detail/ThreadStl.h b/tdutils/td/utils/port/detail/ThreadStl.h
2020-07-25 10:46:31 +00:00
index ef6ff475..c0e18ee4 100644
2018-10-04 07:07:36 +00:00
--- a/tdutils/td/utils/port/detail/ThreadStl.h
+++ b/tdutils/td/utils/port/detail/ThreadStl.h
2020-07-25 10:46:31 +00:00
@@ -41,6 +41,7 @@ class ThreadStl {
2018-10-04 07:07:36 +00:00
invoke_tuple(std::move(args));
clear_thread_locals();
});
+ pthread_setname_np(thread_.native_handle(), "tdlib");
}
void join() {