#include <thread.h>
Classes | |
| struct | ThreadConfig |
| The ThreadConfig is the thread info include thread name, thread priority. More... | |
Public Types | |
| enum class | ThreadPriority : int { kBackground , kNormal , kDisplay , kRaster } |
| Valid values for priority of Thread. More... | |
| using | ThreadConfigSetter = std::function< void(const ThreadConfig &)> |
Public Member Functions | |
| Thread (const std::string &name="") | |
| Thread (const ThreadConfigSetter &setter, const ThreadConfig &config=ThreadConfig()) | |
| ~Thread () | |
| fml::RefPtr< fml::TaskRunner > | GetTaskRunner () const |
| void | Join () |
Static Public Member Functions | |
| static void | SetCurrentThreadName (const ThreadConfig &config) |
| static size_t | GetDefaultStackSize () |
| using fml::Thread::ThreadConfigSetter = std::function<void(const ThreadConfig&)> |
|
strong |
Valid values for priority of Thread.
Definition at line 23 of file thread.h.
|
explicit |
Definition at line 139 of file thread.cc.
|
explicit |
Definition at line 142 of file thread.cc.
References fml::MessageLoop::EnsureInitializedForCurrentThread(), fml::MessageLoop::GetCurrent(), fml::AutoResetWaitableEvent::Signal(), and fml::AutoResetWaitableEvent::Wait().
|
static |
Definition at line 177 of file thread.cc.
Referenced by TEST(), and fml::ThreadHandle::ThreadHandle().
| fml::RefPtr< fml::TaskRunner > fml::Thread::GetTaskRunner | ( | ) | const |
Definition at line 164 of file thread.cc.
Referenced by flutter::testing::GetThreadMergerFromRasterThread(), flutter::GTestActivity::OnNativeWindowCreated(), fml::TEST(), fml::testing::TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and flutter::testing::TEST_F().
| void fml::Thread::Join | ( | ) |
Definition at line 168 of file thread.cc.
References fml::MessageLoop::GetCurrent(), fml::TaskRunner::PostTask(), and fml::MessageLoop::Terminate().
Referenced by TEST(), TEST(), TEST(), TEST(), and ~Thread().
|
static |
Definition at line 135 of file thread.cc.
References fml::Thread::ThreadConfig::name, and fml::SetThreadName().
Referenced by flutter::AndroidPlatformThreadConfigSetter(), fml::ConcurrentMessageLoop::ConcurrentMessageLoop(), flutter_runner::Engine::CreateThreadHost(), FlutterEngineInitialize(), and IOSPlatformThreadConfigSetter().