vcl/source/app/svmain.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 4668bfe4f64acfb17da5efbb759407664b407d81
Author: Noel Grandin <[email protected]>
AuthorDate: Fri Oct 21 12:46:29 2022 +0200
Commit: Noel Grandin <[email protected]>
CommitDate: Fri Oct 21 17:28:24 2022 +0200
give main thread a name
to make it easier to find in profilers and debuggersy
Change-Id: Ie376186d623957ae71c3e5bcea36888fcdf85d80
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141625
Tested-by: Jenkins
Reviewed-by: Noel Grandin <[email protected]>
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index 7c5505f364cb..6f76c99b6a36 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -302,6 +302,8 @@ bool InitVCL()
return true;
}
+ osl_setThreadName("VCL Main");
+
if( pExceptionHandler != nullptr )
return false;