Win will use another completely different approach. So, change the
guards to EFL_HAVE_POSIX_THREADS.
Also, include eina_sched.h as should have been done.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@52654
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
# include "config.h"
#endif
-#ifdef EFL_HAVE_THREADS
+#ifdef EFL_HAVE_POSIX_THREADS
# include <pthread.h>
# ifdef __linux__
# include <sched.h>
# endif
#endif
+#include "eina_sched.h"
#include "eina_log.h"
#define RTNICENESS 5
EAPI void
eina_sched_prio_drop(void)
{
-#ifdef EFL_HAVE_THREADS
+#ifdef EFL_HAVE_POSIX_THREADS
struct sched_param param;
int pol, prio, ret;
pthread_t pthread_id;
}
#endif
#else
- EINA_LOG_ERR("Eina does not have support for threads enabled");
+ EINA_LOG_ERR("Eina does not have support for threads enabled"
+ "or it doesn't support setting scheduler priorities");
#endif
}