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

Unified Diff: native_client_sdk/src/examples/demo/voronoi/voronoi.cc

Issue 16266004: Change default to not use pthreads at startup (all calculations on main thread) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 7 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 | « native_client_sdk/src/examples/demo/voronoi/threadpool.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/examples/demo/voronoi/voronoi.cc
===================================================================
--- native_client_sdk/src/examples/demo/voronoi/voronoi.cc (revision 203001)
+++ native_client_sdk/src/examples/demo/voronoi/voronoi.cc (working copy)
@@ -201,8 +201,8 @@
point_count_ = kStartPointCount;
Reset();
- // By default, do single threaded rendering.
- num_threads_ = 1;
+ // By default, render from the dispatch thread.
+ num_threads_ = 0;
workers_ = new ThreadPool(num_threads_);
// Request PPAPI input events for mouse & keyboard.
« no previous file with comments | « native_client_sdk/src/examples/demo/voronoi/threadpool.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698