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

@@ -1133,7 +1133,6 @@ maybe_t<int> env_stack_impl_t::try_set_electric(const wcstring &key, const query
/// Set a universal variable, inheriting as applicable from the given old variable.
void env_stack_impl_t::set_universal(const wcstring &key, wcstring_list_t val,
const query_t &query) {
ASSERT_IS_MAIN_THREAD();
auto oldvar = uvars()->get(key);
// Resolve whether or not to export.
bool exports = false;