diff Platforms/Generic/Oracle.cpp @ 89:f244018a4e4b wasm

BUGGY- trying to remove IVolumeSlicesObserver
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 26 May 2017 18:27:59 +0200
parents 4a541cd4fa83
children 2eca030792aa
line wrap: on
line diff
--- a/Platforms/Generic/Oracle.cpp	Fri May 26 16:11:52 2017 +0200
+++ b/Platforms/Generic/Oracle.cpp	Fri May 26 18:27:59 2017 +0200
@@ -26,6 +26,7 @@
 #include "../../Resources/Orthanc/Core/OrthancException.h"
 
 #include <vector>
+#include <stdio.h>
 
 namespace OrthancStone
 {
@@ -67,6 +68,9 @@
           IOracleCommand& command = dynamic_cast<IOracleCommand&>(*item);
           command.Execute();
 
+          // Random sleeping to test
+          //boost::this_thread::sleep(boost::posix_time::milliseconds(50 * (1 + rand() % 10)));
+
           if (that->globalMutex_ != NULL)
           {
             boost::mutex::scoped_lock lock(*that->globalMutex_);