Replace a bunch of ASSERT_IS_MAIN_THREAD

Switch these to a new function parser.assert_can_execute(), in
preparation for allowing execution off of the main thread.
This commit is contained in:
ridiculousfish
2022-06-19 16:27:06 -07:00
parent e2e340823a
commit 50f6b06251
13 changed files with 23 additions and 28 deletions

View File

@@ -187,7 +187,6 @@ static void guess_emoji_width(const environment_t &vars) {
/// React to modifying the given variable.
void env_dispatch_var_change(const wcstring &key, env_stack_t &vars) {
ASSERT_IS_MAIN_THREAD();
// Do nothing if not yet fully initialized.
if (!s_var_dispatch_table) return;