summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Schäfer <ssa@openoffice.org>2001-07-06 13:35:36 +0000
committerStephan Schäfer <ssa@openoffice.org>2001-07-06 13:35:36 +0000
commit9cf7eccd37012421902e4e472892ea66ebd976f1 (patch)
treead500d5a03c9d532b060af6d5762828c4f4c8852
parent3abfde24f3837c4c700d8815d6a8f4ca86636ac8 (diff)
new: WaitForClientConnect() to optimize RVP startup
-rw-r--r--vcl/source/app/svapp.cxx19
1 files changed, 17 insertions, 2 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index b928fb1e4e22..7f8fa6994b8e 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svapp.cxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: th $ $Date: 2001-07-03 14:41:59 $
+ * last change: $Author: ssa $ $Date: 2001-07-06 14:35:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1993,3 +1993,18 @@ BOOL Application::IsHeadlessModeEnabled()
return IsDialogCancelEnabled();
}
+// -----------------------------------------------------------------------
+
+void Application::WaitForClientConnect()
+{
+#ifdef REMOTE_APPSERVER
+ ImplSVData* pSVData = ImplGetSVData();
+ if( pSVData && pSVData->mpStartUpCond )
+ {
+ pSVData->mpStartUpCond->wait();
+ delete pSVData->mpStartUpCond;
+ pSVData->mpStartUpCond = NULL;
+ }
+#endif
+}
+