A new debugger.
Lots of bugs/rough edges/etc - issues will be filed. Old-style debugging still works (just use --emit_source_annotations to get the helpful movs back and --break_on_instruction will still fire).
This commit is contained in:
@@ -39,6 +39,11 @@ Loop::~Loop() {
|
||||
}
|
||||
|
||||
void Loop::PostSynchronous(std::function<void()> fn) {
|
||||
if (is_on_loop_thread()) {
|
||||
// Prevent deadlock if we are executing on ourselves.
|
||||
fn();
|
||||
return;
|
||||
}
|
||||
xe::threading::Fence fence;
|
||||
Post([&fn, &fence]() {
|
||||
fn();
|
||||
|
||||
Reference in New Issue
Block a user