Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Unified Diff: runtime/vm/os_thread.cc

Issue 1483113002: Thread and Timeline fixes for Mojo. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Cleanup Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/os_thread.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_thread.cc
diff --git a/runtime/vm/os_thread.cc b/runtime/vm/os_thread.cc
index efaae1552353c3bb482c20278fbe65c5cc6115e1..17d66d5ddcc06db2b539219cf0ef4fc1e0d48ea1 100644
--- a/runtime/vm/os_thread.cc
+++ b/runtime/vm/os_thread.cc
@@ -114,7 +114,16 @@ void OSThread::Cleanup() {
}
-bool OSThread::IsThreadInList(ThreadId join_id) {
+OSThread* OSThread::CreateAndSetUnknownThread() {
+ ASSERT(OSThread::Current() == NULL);
+ OSThread* os_thread = new OSThread();
+ OSThread::SetCurrent(os_thread);
+ os_thread->set_name("Unknown");
+ return os_thread;
+}
+
+
+bool OSThread::IsThreadInList(ThreadJoinId join_id) {
if (join_id == OSThread::kInvalidThreadJoinId) {
return false;
}
« no previous file with comments | « runtime/vm/os_thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698