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

Unified Diff: src/utils/SkTaskGroup.h

Issue 687953003: SkTaskGroup::add(fn, arg) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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 | src/utils/SkTaskGroup.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkTaskGroup.h
diff --git a/src/utils/SkTaskGroup.h b/src/utils/SkTaskGroup.h
index dddd4ad442ecb03041f2578c688e8ef8060f43dd..c60ceda52e01d5bc7b6c246bcaf3bc1a4c3caecb 100644
--- a/src/utils/SkTaskGroup.h
+++ b/src/utils/SkTaskGroup.h
@@ -22,10 +22,12 @@ public:
SkTaskGroup();
~SkTaskGroup() { this->wait(); }
- // Add a task to this SkTaskGroup. It will likely run() on another thread.
+ // Add a task to this SkTaskGroup. It will likely run on another thread.
+ // Neither add() method takes owership of any of its parameters.
void add(SkRunnable*);
+ void add(void (*fn)(void*), void* arg);
- // Block until all Tasks previously add()ed to this SkTaskGroup have run().
+ // Block until all Tasks previously add()ed to this SkTaskGroup have run.
// You may safely reuse this SkTaskGroup after wait() returns.
void wait();
« no previous file with comments | « no previous file | src/utils/SkTaskGroup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698