S(file);
S(prefix);
S(value);
+ S(tmpstr);
+ S(thread);
/* no model for now
S(model);
*/
S(file),
S(prefix),
S(value),
+ S(tmpstr),
+ S(thread)
/* no model for now
S(model)
*/
eina_main_loop_is(void)
{
#ifdef EFL_HAVE_THREADS
- pid_t pid = getpid();
+ pid_t pid;
# ifdef _WIN32
+ if (_eina_main_loop == GetCurrentThreadId())
+ return EINA_TRUE;
+# else
+ if (pthread_equal(_eina_main_loop, pthread_self()))
+ return EINA_TRUE;
+# endif
+
+ pid = getpid();
+# ifdef _WIN32
if (pid != _eina_pid)
{
_eina_pid = pid;
_eina_main_loop = GetCurrentThreadId();
return EINA_TRUE;
}
- if (_eina_main_loop == GetCurrentThreadId())
- return EINA_TRUE;
-# else
+#else
if (pid != _eina_pid)
{
/* This is in case of a fork, but don't like the solution */
_eina_main_loop = pthread_self();
return EINA_TRUE;
}
-
- if (pthread_equal(_eina_main_loop, pthread_self()))
- return EINA_TRUE;
-# endif
#endif
+#endif
+
return EINA_FALSE;
}