[wasm][debugger] Fixing race condition (#64394)
authorThays Grazia <thaystg@gmail.com>
Mon, 7 Feb 2022 17:24:29 +0000 (14:24 -0300)
committerGitHub <noreply@github.com>
Mon, 7 Feb 2022 17:24:29 +0000 (14:24 -0300)
commit116ee71e0f9816155aef867d134dee75e8b13be2
tree5f0a4dd1d741d0ce3463ab6d9f9c801dbf799f72
parentec4d084d940161519778b9f2ba83b450e5e3606a
[wasm][debugger] Fixing race condition (#64394)

* Fixing race condition.

* Completely avoid race condition as @lewing suggested.

* keeping old name

* Addressing @radical comments

* Addressing @lewing comments.

* fix unrelated change

* Addressing @lewing comment offline.
src/mono/mono/component/mini-wasm-debugger.c
src/mono/wasm/debugger/BrowserDebugProxy/MonoSDBHelper.cs
src/mono/wasm/runtime/debug.ts