From 7fbb897391f563e9bda7732f3e50959f82d6921e Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 3 Apr 2012 20:21:10 +0300 Subject: Add debugging output (this file is experimental anyway) --- vcl/android/androidinst.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'vcl/android') diff --git a/vcl/android/androidinst.cxx b/vcl/android/androidinst.cxx index 52ebe53b4af8..014b1e36b003 100644 --- a/vcl/android/androidinst.cxx +++ b/vcl/android/androidinst.cxx @@ -605,6 +605,19 @@ void AndroidSalInstance::Wakeup() void AndroidSalInstance::DoReleaseYield (int nTimeoutMS) { + // Presumably this should never be called at all except in + // NativeActivity-based apps with a GUI, like android/qa/desktop, where + // the message pump is run here in vcl? + if (!mpApp) { + static bool beenhere = false; + if (!beenhere) + { + fprintf (stderr, "**** Huh, %s called in non-NativeActivity app\n", __FUNCTION__); + beenhere = true; + } + return; + } + // release yield mutex sal_uLong nAcquireCount = ReleaseYieldMutex(); -- cgit v1.2.3