summaryrefslogtreecommitdiff
path: root/sd/source/ui/remotecontrol/Listener.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2013-01-28 20:03:20 +1100
committerPetr Mladek <pmladek@suse.cz>2013-01-29 09:45:24 +0000
commitdad7a304cbf58d24180e57091140b9f53a48a9b9 (patch)
tree3dce7a13c264300c2fb4d3424374a456047e5c6c /sd/source/ui/remotecontrol/Listener.cxx
parentb91a02c539b107231555e551bda340dcab105e88 (diff)
fdo#59881 - sdremote: give up on threaded / UNO usage.
Process incoming commands in the main thread in a Timeout, build thumbnail / previews there too - to avoid the deadlocks mentioned in the bug. The following commits got squashed into one: (cherry picked from commit f07efaa3bbeb6c2160d6ccbe83ea4183df7115a3) (cherry picked from commit 88cb36db72775c116c4721163763beb1b2ec0ea3) (cherry picked from commit 9b696a67f92c7206fe947996931995a70229752e) Change-Id: I7e825228fcc7ba4e1c40a161c29a0f9a371abdfb Signed-off-by: Thorsten Behrens <tbehrens@suse.com> Reviewed-on: https://gerrit.libreoffice.org/1915 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'sd/source/ui/remotecontrol/Listener.cxx')
-rw-r--r--sd/source/ui/remotecontrol/Listener.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sd/source/ui/remotecontrol/Listener.cxx b/sd/source/ui/remotecontrol/Listener.cxx
index 30b29a90a4ce..2052fbf4d065 100644
--- a/sd/source/ui/remotecontrol/Listener.cxx
+++ b/sd/source/ui/remotecontrol/Listener.cxx
@@ -10,12 +10,13 @@
#include <comphelper/processfactory.hxx>
#include <com/sun/star/presentation/XPresentationSupplier.hpp>
#include <com/sun/star/presentation/XPresentation2.hpp>
-
#include <rtl/strbuf.hxx>
+#include <vcl/svapp.hxx>
#include "Listener.hxx"
#include "ImagePreparer.hxx"
+
using namespace sd;
using namespace ::com::sun::star::presentation;
using namespace ::com::sun::star::frame;
@@ -53,8 +54,10 @@ void Listener::init( const css::uno::Reference< css::presentation::XSlideShowCon
pTransmitter->addMessage( aBuffer.makeStringAndClear(),
Transmitter::PRIORITY_HIGH );
- ImagePreparer* pPreparer = new ImagePreparer( aController, pTransmitter );
- pPreparer->create();
+ {
+ SolarMutexGuard aGuard;
+ /* ImagePreparer* pPreparer = */ new ImagePreparer( aController, pTransmitter );
+ }
}
else
{