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/skia/src/core/
SkTaskGroup.h
17
class
SkTaskGroup
: SkNoncopyable {
25
SkTaskGroup
();
26
~
SkTaskGroup
() { this->wait(); }
28
// Add a task to this
SkTaskGroup
. It will likely run on another thread.
34
// Block until all Tasks previously add()ed to this
SkTaskGroup
have run.
35
// You may safely reuse this
SkTaskGroup
after wait() returns.
SkTaskGroup.cpp
13
#include "
SkTaskGroup
.h"
64
// Lend a hand until our
SkTaskGroup
of interest is done.
79
// This Work isn't necessarily part of our
SkTaskGroup
of interest, but that's fine.
188
friend struct
SkTaskGroup
::Enabler;
194
SkTaskGroup
::Enabler::Enabler(int threads) {
201
SkTaskGroup
::Enabler::~Enabler() { delete ThreadPool::gGlobal; }
203
SkTaskGroup
::
SkTaskGroup
() : fPending(0) {}
205
void
SkTaskGroup
::wait() { ThreadPool::Wait(&fPending); }
206
void
SkTaskGroup
::add(std::function<void(void)> fn) { ThreadPool::Add(fn, &fPending);
[
all
...]
Completed in 64 milliseconds