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

Unified Diff: webrtc/base/thread.h

Issue 2784483002: Add Darwin thread.h implementation. (Closed)
Patch Set: Created 3 years, 9 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
Index: webrtc/base/thread.h
diff --git a/webrtc/base/thread.h b/webrtc/base/thread.h
index 5751df385cc5d1acd43f8b153d3af0720ceb7a6f..c83ea4851348bcc7bfa786abe5348440e8dc1c90 100644
--- a/webrtc/base/thread.h
+++ b/webrtc/base/thread.h
@@ -91,6 +91,12 @@ class Runnable {
RTC_DISALLOW_COPY_AND_ASSIGN(Runnable);
};
+struct ThreadInit {
tommi 2017/03/28 13:59:01 can we move this declaration into the source file
kthelgason 2017/03/28 14:29:58 I moved it here as it's used in both thread.cc and
tommi 2017/03/28 14:38:56 ah, can it be a private struct in Thread?
+ Thread* thread;
+ Runnable* runnable;
+};
+
+
// WARNING! SUBCLASSES MUST CALL Stop() IN THEIR DESTRUCTORS! See ~Thread().
class LOCKABLE Thread : public MessageQueue {

Powered by Google App Engine
This is Rietveld 408576698