From bc67bcb2dca2190b81f8f930d06e9bb7f2523d34 Mon Sep 17 00:00:00 2001
From: Julien Malik <julien.malik@c-s.fr>
Date: Fri, 25 Nov 2011 10:54:00 +0100
Subject: [PATCH] COMP: don't use OpenThreads outside of OTB cxx

---
 Testing/Code/IO/otbCoordinateToNameTest.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Testing/Code/IO/otbCoordinateToNameTest.cxx b/Testing/Code/IO/otbCoordinateToNameTest.cxx
index 7a8e010353..02aff1c346 100644
--- a/Testing/Code/IO/otbCoordinateToNameTest.cxx
+++ b/Testing/Code/IO/otbCoordinateToNameTest.cxx
@@ -19,10 +19,10 @@
 
 #include <fstream>
 #include <cstdlib>
-#include <OpenThreads/Thread>
 
 #include "otbCoordinateToName.h"
 #include "otbCurlHelperStub.h"
+#include "otbThreads.h"
 
 int otbCoordinateToNameTest(int argc, char* argv[])
 {
@@ -49,7 +49,7 @@ int otbCoordinateToNameTest(int argc, char* argv[])
     {
     conv->MultithreadOn();
     conv->Evaluate();
-    OpenThreads::Thread::microSleep(10000000); //Make sure that the web request has the time to complete
+    otb::Threads::Sleep(10000000); //Make sure that the web request has the time to complete
     }
   else
     {
-- 
GitLab