Debugger message handler can be called from V8 thread.
authorsgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 27 Mar 2009 09:56:53 +0000 (09:56 +0000)
committersgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 27 Mar 2009 09:56:53 +0000 (09:56 +0000)
commit8b7a288e4822a4a9d784afaf16db64fbd80495ac
tree6e4841f3968a1d564664f555cd954cce17eab373
parent8e34544bd197b28c45373e9b31a7495324566c6b
Debugger message handler can be called from V8 thread.

The message handler function set through the debugger API is normally called in a different thread than the V8 thread where execution is stopped due to debugger event. This change adds an option to the API for specifying that the message handler should be called directly from the V8 thread. For an application like Chrome where thread dispatching is already in place this makes more sense.

Add an option to the message handler debugger API to process messages in the thread where V8 is running instead of posting it to a queue for processing on a additional thread.
Review URL: http://codereview.chromium.org/42643

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1627 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
include/v8-debug.h
src/api.cc
src/debug.cc
src/debug.h