summaryrefslogtreecommitdiff
path: root/vcl/android
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-04-03 20:21:10 +0300
committerTor Lillqvist <tlillqvist@suse.com>2012-04-04 22:29:13 +0300
commit7fbb897391f563e9bda7732f3e50959f82d6921e (patch)
treee0a3c8faf296ec9fdc810c2ce33532e7dc3718e3 /vcl/android
parent9d200b61aaf6cb8b06f0bbff3cee842b21d56052 (diff)
Add debugging output (this file is experimental anyway)
Diffstat (limited to 'vcl/android')
-rw-r--r--vcl/android/androidinst.cxx13
1 files changed, 13 insertions, 0 deletions
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();