kbrown / rpms / libreoffice

Forked from rpms/libreoffice 2 years ago
Clone

Blame SOURCES/0090-LOKit-set-thread-name-lo_startmain.patch

135360
From 9d18b66a61ab8adb0ed6614a4538afa20b9e732e Mon Sep 17 00:00:00 2001
135360
From: Henry Castro <hcastro@collabora.com>
135360
Date: Thu, 6 Aug 2015 11:40:28 -0400
135360
Subject: [PATCH 090/398] LOKit: set thread name lo_startmain
135360
135360
It is necessary the thread name for debugging LOKit threads.
135360
135360
Change-Id: I713595eb1319234ff90a6eddebcac5ebad912b04
135360
(cherry picked from commit 21531da576eca7ef9cb2ee78d1643b25d5f86ae3)
135360
---
135360
 desktop/source/lib/init.cxx | 2 ++
135360
 1 file changed, 2 insertions(+)
135360
135360
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
135360
index aa8e27c7f48f..abd8ca0b640b 100644
135360
--- a/desktop/source/lib/init.cxx
135360
+++ b/desktop/source/lib/init.cxx
135360
@@ -942,6 +942,8 @@ static bool initialize_uno(const OUString& aAppProgramURL)
135360
 
135360
 static void lo_startmain(void*)
135360
 {
135360
+    osl_setThreadName("lo_startmain");
135360
+
135360
     soffice_main();
135360
 }
135360
 
135360
-- 
135360
2.12.0
135360