Index: runtime/vm/thread_pool.cc |
=================================================================== |
--- runtime/vm/thread_pool.cc (revision 6698) |
+++ runtime/vm/thread_pool.cc (working copy) |
@@ -228,7 +228,10 @@ |
ASSERT(task_ != NULL); |
} |
#endif |
- Thread::Start(&Worker::Main, reinterpret_cast<uword>(this)); |
+ int result = Thread::Start(&Worker::Main, reinterpret_cast<uword>(this)); |
+ if (result != 0) { |
+ FATAL1("Could not start worker thread: result = %d.", result); |
+ } |
} |