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

Unified Diff: src/Scheduler.cpp

Issue 29370876: Issue #4692, #3595 - Stop sleeping in the implementation of `SetTimeout`
Patch Set: Created Jan. 9, 2017, 1:22 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
« no previous file with comments | « src/Scheduler.h ('k') | src/Timeout.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/Scheduler.cpp
===================================================================
--- a/src/Scheduler.cpp
+++ b/src/Scheduler.cpp
@@ -17,25 +17,6 @@
#include "Scheduler.h"
#include <thread>
-using namespace AdblockPlus;
-
-namespace
-{
- void SingleUseThreadMain(std::function<void()> task)
- {
- task();
- }
-}
-
-void StartImmediatelyInSingleUseDetachedThread(std::function<void()> task)
-{
- if (!task)
- {
- return;
- }
- auto th = std::thread(SingleUseThreadMain, task);
- th.detach();
-}
OperationRunner::OperationRunner()
: isRunning(true)
« no previous file with comments | « src/Scheduler.h ('k') | src/Timeout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld