summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorKevin Dubrulle <kevin.dubrulle@gmail.com>2018-07-07 13:34:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-08 11:48:40 +0200
commitd0f44d8ba7e87aa263008d3cfc4e68294d783162 (patch)
tree8527c62fb066366df2b40386c6544e670aa10a1a /canvas
parenta2193f8f33565cc896592acb9d3ab65c756d97fb (diff)
tdf#84323 - sal - add sane sleep interface: cleanup osl_waitThread
Replace osl_waitThread by osl::Thread::wait. Use std::chrono instead of TimeValue. Change-Id: I71691d014feeeb0c5d0ba29d048bda8e25e6e7dd Reviewed-on: https://gerrit.libreoffice.org/57130 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/directx/dx_9rm.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/canvas/source/directx/dx_9rm.cxx b/canvas/source/directx/dx_9rm.cxx
index 3cc7fd5437a3..55165bbcedcc 100644
--- a/canvas/source/directx/dx_9rm.cxx
+++ b/canvas/source/directx/dx_9rm.cxx
@@ -27,7 +27,7 @@
#include <basegfx/vector/b2dsize.hxx>
#include <basegfx/vector/b2isize.hxx>
#include <com/sun/star/lang/NoSupportException.hpp>
-#include <osl/thread.h>
+#include <osl/thread.hxx>
#include <osl/time.h>
#include <tools/diagnose_ex.h>
#include <vcl/syschild.hxx>
@@ -880,10 +880,7 @@ namespace dxcanvas
return true;
}
- TimeValue aTimeout;
- aTimeout.Seconds=1;
- aTimeout.Nanosec=0;
- osl_waitThread(&aTimeout);
+ osl::Thread::wait(std::chrono::seconds(1));
}
while(hr == D3DERR_DEVICELOST);