Definition at line 291 of file safepoint_test.cc.
◆ State
◆ CheckinTask()
dart::CheckinTask::CheckinTask |
( |
std::shared_ptr< Data > |
data | ) |
|
|
inlineexplicit |
◆ data()
Data * dart::CheckinTask::data |
( |
| ) |
|
|
inlineprotected |
Definition at line 321 of file safepoint_test.cc.
321{
return reinterpret_cast<Data*
>(
data_.get()); }
std::shared_ptr< Data > data_
struct PathData * Data(SkPath *path)
◆ RunInternal()
virtual void dart::CheckinTask::RunInternal |
( |
| ) |
|
|
inlineprotectedvirtual |
Implements dart::StateMachineTask.
Definition at line 323 of file safepoint_test.cc.
323 {
325
329 switch (
data()->level) {
331
332 RuntimeCallDeoptScope no_deopt(
336 }
337 break;
338 }
340
343 }
344 break;
345 }
347
351 }
352 break;
353 }
357 }
358
359
360
361
362
363
364
365
366
368 if ((now - last_sync) > 1000) {
371 last_sync = now;
372 }
373 }
374 }
375 }
bool SafepointIfRequested(Thread *thread, std::atomic< intptr_t > *checkins)
static void SleepMicros(int64_t micros)
static int64_t GetCurrentTimeMillis()
static Thread * Current()
AsThreadStackResource< RawReloadParticipationScope > ReloadParticipationScope
◆ SafepointIfRequested()
bool dart::CheckinTask::SafepointIfRequested |
( |
Thread * |
thread, |
|
|
std::atomic< intptr_t > * |
checkins |
|
) |
| |
|
inlineprotected |
Definition at line 377 of file safepoint_test.cc.
377 {
378 if (thread->IsSafepointRequested()) {
379
380 thread->BlockForSafepoint();
381 (*checkins)++;
382 return true;
383 }
384 return false;
385 }
The documentation for this class was generated from the following file: