OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:SkTaskGroup
(Results
1 - 2
of
2
) sorted by null
/external/chromium_org/third_party/skia/src/utils/
SkTaskGroup.h
14
class
SkTaskGroup
: SkNoncopyable {
22
SkTaskGroup
();
23
~
SkTaskGroup
() { this->wait(); }
25
// Add a task to this
SkTaskGroup
. It will likely run() on another thread.
28
// Block until all Tasks previously add()ed to this
SkTaskGroup
have run().
29
// You may safely reuse this
SkTaskGroup
after wait() returns.
SkTaskGroup.cpp
1
#include "
SkTaskGroup
.h"
38
// Lend a hand until our
SkTaskGroup
of interest is done.
49
// This Work isn't necessarily part of our
SkTaskGroup
of interest, but that's fine.
128
friend struct
SkTaskGroup
::Enabler;
134
SkTaskGroup
::Enabler::Enabler(int threads) {
139
SkTaskGroup
::Enabler::~Enabler() {
144
SkTaskGroup
::
SkTaskGroup
() : fPending(0) {}
146
void
SkTaskGroup
::add(SkRunnable* task) { ThreadPool::Add(task, &fPending); }
147
void
SkTaskGroup
::wait() { ThreadPool::Wait(&fPending);
[
all
...]
Completed in 457 milliseconds