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

Unified Diff: ppapi/utility/threading/simple_thread.h

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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: ppapi/utility/threading/simple_thread.h
diff --git a/ppapi/utility/threading/simple_thread.h b/ppapi/utility/threading/simple_thread.h
index a093961bf539fbe45715035969bd51351dc83ab1..ebaa6288cab0c2595c415345f12d96a28f0d14a0 100644
--- a/ppapi/utility/threading/simple_thread.h
+++ b/ppapi/utility/threading/simple_thread.h
@@ -12,6 +12,7 @@
#endif
#include "ppapi/cpp/dev/message_loop_dev.h"
+#include "ppapi/cpp/instance_handle.h"
namespace pp {
@@ -27,7 +28,7 @@ class SimpleThread {
typedef void (*ThreadFunc)(MessageLoop_Dev&, void* user_data);
- SimpleThread(Instance* instance);
+ SimpleThread(const InstanceHandle& instance);
dmichael (off chromium) 2012/02/21 23:38:02 explicit
~SimpleThread();
// Starts a thread and runs a message loop in it. If you need control over
@@ -49,7 +50,7 @@ class SimpleThread {
ThreadHandle thread() const { return thread_; }
private:
- Instance* instance_;
+ InstanceHandle instance_;
MessageLoop_Dev message_loop_;
ThreadHandle thread_;

Powered by Google App Engine
This is Rietveld 408576698