#include <profiler.h>
Definition at line 904 of file profiler.h.
◆ Cleanup()
void dart::SampleBlockProcessor::Cleanup |
( |
| ) |
|
|
static |
Definition at line 1801 of file profiler.cc.
1801 {
1802 {
1803 MonitorLocker shutdown_ml(monitor_);
1804 if (shutdown_) {
1805
1806 return;
1807 }
1808 shutdown_ = true;
1809
1810 shutdown_ml.Notify();
1812 }
1813
1814
1818 initialized_ = false;
1819 ASSERT(!thread_running_);
1820}
static void Join(ThreadJoinId id)
static const ThreadJoinId kInvalidThreadJoinId
◆ Init()
void dart::SampleBlockProcessor::Init |
( |
| ) |
|
|
static |
Definition at line 1780 of file profiler.cc.
1780 {
1782 if (monitor_ == nullptr) {
1783 monitor_ = new Monitor();
1784 }
1785 ASSERT(monitor_ !=
nullptr);
1786 initialized_ = true;
1787 shutdown_ = false;
1788}
◆ Startup()
void dart::SampleBlockProcessor::Startup |
( |
| ) |
|
|
static |
Definition at line 1790 of file profiler.cc.
1790 {
1793 MonitorLocker startup_ml(monitor_);
1795 while (!thread_running_) {
1796 startup_ml.Wait();
1797 }
1799}
static int Start(const char *name, ThreadStartFunction function, uword parameter)
The documentation for this class was generated from the following files: