struct SetupClosure : public Closure { void Run(Thread* self) override {
CHECK_EQ(self, Thread::Current()) << "Not running on target thread!";
ScopedObjectAccess soa(self);
MutexLock tscl_mu(self, *Locks::thread_suspend_count_lock_); // Both should succeed since we are in runnable and have the lock.
CHECK(self->RequestCheckpoint(&gTestClosure)) << "Could not set first checkpoint.";
CHECK(self->RequestCheckpoint(&gTestClosure)) << "Could not set second checkpoint.";
}
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.