Index: runtime/vm/message_handler.h |
diff --git a/runtime/vm/message_handler.h b/runtime/vm/message_handler.h |
index 78c5f6c7e5ec4173641a9f06b21b32b9fb365752..4a939ae522101b564d5a4d7a463274fcd32bd6e4 100644 |
--- a/runtime/vm/message_handler.h |
+++ b/runtime/vm/message_handler.h |
@@ -184,6 +184,9 @@ class MessageHandler { |
virtual void NotifyPauseOnStart() {} |
virtual void NotifyPauseOnExit() {} |
+ // TODO(iposva): Set a local field before entering MessageHandler methods. |
+ Thread* thread() const { return Thread::Current(); } |
+ |
private: |
friend class PortMap; |
friend class MessageHandlerTestPeer; |