diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2013-12-04 15:00:36 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2013-12-04 15:00:36 +0000 |
commit | 4bad16b2a27ba44998b107cb3cc5fdca92753ccf (patch) | |
tree | a92426facc373d4e1962f7f6c1c675120419f60f /include/vcl/timer.hxx | |
parent | d1539f91810cb4b426f3c823c25ab6ac25f6283e (diff) |
oox: render progress bar in main thread for threaded import.
Experimental only.
This avoids ,us deadlocking as the main thread tries to join it's children,
and the child threads wait to 'Yield' in the progress bar update.
Also it's generally safer to move progress reporting out of the other
threads, and to have the mainloop spinning here.
Finally this allows people to continue to use the LibreOffice suite while
large XLSX spreadsheets are loading.
Change-Id: Id41c18f3941d6fc5eea593f7cfcf6a8b7215b3f8
Diffstat (limited to 'include/vcl/timer.hxx')
-rw-r--r-- | include/vcl/timer.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/timer.hxx b/include/vcl/timer.hxx index ff9a4cf5dcc0..a5b1c95b21fa 100644 --- a/include/vcl/timer.hxx +++ b/include/vcl/timer.hxx @@ -46,7 +46,8 @@ public: void Start(); void Stop(); - void SetTimeout( sal_uLong nTimeout ); + /// set the timeout in milliseconds + void SetTimeout( sal_uLong nTimeoutMs ); sal_uLong GetTimeout() const { return mnTimeout; } sal_Bool IsActive() const { return mbActive ? sal_True : sal_False; } |