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

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

Issue 12259018: Provide alternate constructor for specifying a simple thread's stacksize. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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
« no previous file with comments | « no previous file | ppapi/utility/threading/simple_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/utility/threading/simple_thread.h
===================================================================
--- ppapi/utility/threading/simple_thread.h (revision 182510)
+++ ppapi/utility/threading/simple_thread.h (working copy)
@@ -29,6 +29,7 @@
typedef void (*ThreadFunc)(MessageLoop&, void* user_data);
explicit SimpleThread(const InstanceHandle& instance);
+ explicit SimpleThread(const InstanceHandle& instance, const size_t stacksize);
brettw 2013/02/16 04:19:40 I'd remove "const" for the argument here.
nfullagar1 2013/02/19 18:59:10 Done.
~SimpleThread();
// Starts a thread and runs a message loop in it. If you need control over
@@ -52,11 +53,12 @@
private:
InstanceHandle instance_;
MessageLoop message_loop_;
-
+ const size_t stacksize_;
ThreadHandle thread_;
// Disallow (not implemented).
SimpleThread(const SimpleThread&);
+ SimpleThread(const SimpleThread&, const size_t stacksize);
brettw 2013/02/16 04:19:40 I'm remove "const" for the argument here.
nfullagar1 2013/02/19 18:59:10 Done.
SimpleThread& operator=(const SimpleThread&);
};
« no previous file with comments | « no previous file | ppapi/utility/threading/simple_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698