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

Unified Diff: bin/dbg_message.h

Issue 11144027: Fix race condition when posting debugger messages to the message queue (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 2 months 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 | « bin/dbg_connection.cc ('k') | bin/dbg_message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/dbg_message.h
===================================================================
--- bin/dbg_message.h (revision 13666)
+++ bin/dbg_message.h (working copy)
@@ -212,6 +212,16 @@
// It returns kInvalidCommand otherwise.
static int32_t LookupIsolateCommand(const char* buf, int32_t buflen);
+ // Queue debugger message targetted for the isolate.
+ static bool AddIsolateMessage(Dart_IsolateId isolate_id,
+ int32_t cmd_idx,
+ const char* start,
+ const char* end,
+ int debug_fd);
+
+ // Interrupt isolate.
+ static bool InterruptIsolate(Dart_IsolateId isolate_id);
+
// Add Debugger Message Queue corresponding to the Isolate.
static DbgMsgQueue* AddIsolateMsgQueue(Dart_IsolateId isolate_id);
@@ -237,6 +247,8 @@
Dart_IsolateEvent kind);
private:
+ static DbgMsgQueue* GetIsolateMsgQueueLocked(Dart_IsolateId isolate_id);
+
static DbgMsgQueue* list_;
static dart::Mutex msg_queue_list_lock_;
« no previous file with comments | « bin/dbg_connection.cc ('k') | bin/dbg_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698