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

Unified Diff: src/Thread.h

Issue 29498570: Issue #4711 - remove lagacy Thread and Mutex classes (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created July 26, 2017, 2:39 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 | « libadblockplus.gyp ('k') | src/Thread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/Thread.h
diff --git a/src/Thread.h b/src/Thread.h
index 2980cff0c8dd89cb0f784c216b5119a4f49596be..bf0d31d90d3b0b9d31e56811b0e1c9ccbea0b5b3 100644
--- a/src/Thread.h
+++ b/src/Thread.h
@@ -76,50 +76,6 @@ namespace AdblockPlus
};
void Sleep(int millis);
-
- class Mutex
- {
- public:
-#ifdef WIN32
- CRITICAL_SECTION nativeMutex;
-#else
- pthread_mutex_t nativeMutex;
-#endif
-
- Mutex();
- ~Mutex();
- void Lock();
- void Unlock();
- };
-
- class Lock
- {
- public:
- Lock(Mutex& mutex);
- ~Lock();
-
- private:
- Mutex& mutex;
- };
-
- class Thread
- {
- public:
- explicit Thread(bool deleteSelfOnFinish = false);
- virtual ~Thread();
- virtual void Run() = 0;
- void Start();
- void Join();
- private:
- static void CallRun(Thread* thread);
- private:
-#ifdef WIN32
- HANDLE nativeThread;
-#else
- pthread_t nativeThread;
-#endif
- bool m_deleteSelfOnFinish;
- };
}
#endif
« no previous file with comments | « libadblockplus.gyp ('k') | src/Thread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld