Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/FilterEngine.cpp

Issue 29367003: Issue #4711 - Rewrite legacy thread facilities
Patch Set: Created Dec. 7, 2016, 4:44 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/FilterEngine.cpp
===================================================================
--- a/src/FilterEngine.cpp
+++ b/src/FilterEngine.cpp
@@ -19,10 +19,10 @@
#include <cctype>
#include <functional>
#include <string>
+#include <thread>
#include <AdblockPlus.h>
#include "JsContext.h"
-#include "Thread.h"
using namespace AdblockPlus;
@@ -161,7 +161,7 @@
// TODO: This should really be implemented via a conditional variable
while (!initialized)
- ::Sleep(10);
+ ::std::this_thread::sleep_for(std::chrono::milliseconds(10));;
}
namespace
« no previous file with comments | « src/FileSystemJsObject.cpp ('k') | src/GlobalJsObject.cpp » ('j') | src/GlobalJsObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld