env obj - fixx implementation to use a shared object

so this chnage totally threww away all the thread safety and locking
without doing the simple thing of using a shared obcj for the global
env obj to ensure brute force safety at least. fix.
This commit is contained in:
Carsten Haitzler 2019-02-14 11:27:27 +00:00
parent 0fba6c89a1
commit 9d65e64c00
1 changed files with 2 additions and 0 deletions

View File

@ -135,7 +135,9 @@ _efl_core_proc_env_self(void)
{
if (!env)
{
efl_domain_current_push(EFL_ID_DOMAIN_SHARED);
env = efl_add_ref(EFL_CORE_PROC_ENV_CLASS, NULL);
efl_domain_current_pop();
efl_wref_add(env, &env);
}