diff Core/Toolbox.h @ 2057:54417b0831c4

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 29 Jun 2016 13:40:24 +0200
parents 35ccba7adae9
children ed383e7a6753
line wrap: on
line diff
--- a/Core/Toolbox.h	Mon Jun 27 17:35:58 2016 +0200
+++ b/Core/Toolbox.h	Wed Jun 29 13:40:24 2016 +0200
@@ -49,9 +49,11 @@
 
   namespace Toolbox
   {
+#if !defined(ORTHANC_SANDBOXED) || ORTHANC_SANDBOXED != 1
     ServerBarrierEvent ServerBarrier(const bool& stopFlag);
 
     ServerBarrierEvent ServerBarrier();
+#endif
 
     void ToUpperCase(std::string& s);  // Inplace version
 
@@ -77,7 +79,9 @@
                    size_t size,
                    const std::string& path);
 
+#if !defined(ORTHANC_SANDBOXED) || ORTHANC_SANDBOXED != 1
     void USleep(uint64_t microSeconds);
+#endif
 
     void RemoveFile(const std::string& path);
 
@@ -137,9 +141,11 @@
                              const std::string& content);
 #endif
 
+#if !defined(ORTHANC_SANDBOXED) || ORTHANC_SANDBOXED != 1
     std::string GetPathToExecutable();
 
     std::string GetDirectoryOfExecutable();
+#endif
 
     std::string ConvertToUtf8(const std::string& source,
                               Encoding sourceEncoding);