Definition at line 29 of file thread.cc.
◆ ThreadHandle()
Definition at line 66 of file thread.cc.
66 {
67 pthread_attr_t attr;
68 pthread_attr_init(&attr);
72 &thread_, &attr,
73 [](void* arg) -> void* {
74 std::unique_ptr<ThreadFunction>
function(
76 (*function)();
77 return nullptr;
78 },
81 result = pthread_attr_destroy(&attr);
83}
static size_t GetDefaultStackSize()
#define FML_CHECK(condition)
Dart_NativeFunction function
std::function< void()> ThreadFunction
◆ ~ThreadHandle()
fml::ThreadHandle::~ThreadHandle |
( |
| ) |
|
◆ Join()
void fml::ThreadHandle::Join |
( |
| ) |
|
Definition at line 85 of file thread.cc.
85 {
86 pthread_join(thread_, nullptr);
87}
The documentation for this class was generated from the following file: