fix some function variables and a cedric-requested rename
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 21 Jul 2010 07:09:51 +0000 (07:09 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 21 Jul 2010 07:09:51 +0000 (07:09 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@50409 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/Ecore.h
src/lib/ecore/ecore_thread.c

index e04f263..204d398 100644 (file)
@@ -357,7 +357,7 @@ extern "C" {
    EAPI int           ecore_thread_max_get(void);
    EAPI void          ecore_thread_max_set(int num);
    EAPI void          ecore_thread_max_reset(void);
-   EAPI int           ecore_thread_avail_get(void);
+   EAPI int           ecore_thread_available_get(void);
 
 
    EAPI double ecore_time_get(void);
index 6f28951..c8333d8 100644 (file)
@@ -665,7 +665,7 @@ EAPI int
 ecore_thread_active_get(void)
 {
 #ifdef EFL_HAVE_PTHREAD
-   return eina_list_count(_ecore_active_job_threads);
+   return _ecore_thread_count;
 #else
    return 0;
 #endif
@@ -766,10 +766,10 @@ ecore_thread_max_reset(void)
  * this should be equal to (num_cpus - (active_running + active_long_running))
  */
 EAPI int
-ecore_thread_avail_get(void)
+ecore_thread_available_get(void)
 {
 #ifdef EFL_HAVE_PTHREAD
-   return _ecore_thread_count_max - (eina_list_count(_ecore_pending_job_threads_long) + eina_list_count(_ecore_pending_job_threads));
+   return _ecore_thread_count_max - _ecore_thread_count);
 #else
    return 0;
 #endif