Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: tools/android/forwarder2/thread.h

Issue 19478003: Remove Thread wrapper class in forwarder2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Marcus' comments Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/android/forwarder2/host_forwarder_main.cc ('k') | tools/android/forwarder2/thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/forwarder2/thread.h
diff --git a/tools/android/forwarder2/thread.h b/tools/android/forwarder2/thread.h
deleted file mode 100644
index 72a8f52e70ec3bb7b3c2ce8ffa8f378ec7ce650b..0000000000000000000000000000000000000000
--- a/tools/android/forwarder2/thread.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef TOOLS_ANDROID_FORWARDER2_THREAD_H_
-#define TOOLS_ANDROID_FORWARDER2_THREAD_H_
-
-#include <pthread.h>
-
-namespace forwarder2 {
-
-// Helper abstract class to create a new thread and curry the
-// call to the Run() method in an object from the new thread.
-class Thread {
- public:
- Thread();
- virtual ~Thread();
-
- // Start thread calling Run().
- void Start();
- void Detach();
- virtual void Join();
-
- protected:
- virtual void Run() = 0;
-
- private:
- static void* ThreadCallback(void* arg);
-
- pthread_t thread_;
-};
-
-} // namespace forwarder
-
-#endif // TOOLS_ANDROID_FORWARDER2_THREAD_H_
« no previous file with comments | « tools/android/forwarder2/host_forwarder_main.cc ('k') | tools/android/forwarder2/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698