summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-11-24 15:32:16 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-11-24 17:07:28 +0000
commit1bd5e8b73d863cad6e42ea9619fc471a0dd8d14b (patch)
treeecd919372d3611261a7a8983817ea0096009a1f5 /include
parenta81de86c47322bd6bc59b462eb2f69e0f1185df4 (diff)
vcl: reduce maximum timeout to some sensible range.
This fixes a bug with glib, where prepare of a source with such a large (max uint64) causes precision & wrap-around problems. Add assert to avoid recurrence. Also add a helpful user-visible source name in debug mode. Change-Id: I9e1eb41af9cc49f8bff88e07f04d4bc4d1877376 Reviewed-on: https://gerrit.libreoffice.org/20152 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/scheduler.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/scheduler.hxx b/include/vcl/scheduler.hxx
index 9cd7fb845d4f..be9df9e69e5a 100644
--- a/include/vcl/scheduler.hxx
+++ b/include/vcl/scheduler.hxx
@@ -61,7 +61,7 @@ protected:
// These should be constexpr static, when supported.
static const sal_uInt64 ImmediateTimeoutMs = 1;
- static const sal_uInt64 MaximumTimeoutMs = SAL_MAX_UINT64;
+ static const sal_uInt64 MaximumTimeoutMs = 1000 * 60; // 1 minute
static void ImplStartTimer(sal_uInt64 nMS, bool bForce = false);