rename ecore_thread_init and ecore_thread_shutdown to fit usual private function names

SVN revision: 42240
This commit is contained in:
Vincent Torri 2009-09-04 05:49:54 +00:00
parent eaf9934e80
commit d8acbfc6f6
3 changed files with 13 additions and 13 deletions

View File

@ -89,7 +89,7 @@ ecore_init(void)
if (_ecore_fps_debug) _ecore_fps_debug_init();
_ecore_signal_init();
_ecore_exe_init();
ecore_thread_init();
_ecore_thread_init();
_ecore_loop_time = ecore_time_get();
}
@ -115,7 +115,7 @@ ecore_shutdown(void)
if (_ecore_fps_debug) _ecore_fps_debug_shutdown();
_ecore_poller_shutdown();
_ecore_animator_shutdown();
ecore_thread_shutdown();
_ecore_thread_shutdown();
_ecore_exe_shutdown();
_ecore_idle_enterer_shutdown();
_ecore_idle_exiter_shutdown();

View File

@ -444,8 +444,8 @@ void _ecore_fps_debug_init(void);
void _ecore_fps_debug_shutdown(void);
void _ecore_fps_debug_runtime_add(double t);
int ecore_thread_init(void);
int ecore_thread_shutdown(void);
int _ecore_thread_init(void);
int _ecore_thread_shutdown(void);
extern int _ecore_fps_debug;
extern double _ecore_loop_time;

View File

@ -27,7 +27,7 @@ struct _Ecore_Pthread_Worker
static int _ecore_thread_count_max = 0;
static int _ecore_thread_count = 0;
static int _ecore_thread_init = 0;
static int _ecore_thread_initcount = 0;
static Eina_List *_ecore_thread = NULL;
static int ECORE_THREAD_PIPE_DEL = 0;
static Ecore_Event_Handler *del_handler = NULL;
@ -134,11 +134,11 @@ _ecore_thread_handler(void *data __UNUSED__, void *buffer, unsigned int nbyte)
#endif
int
ecore_thread_init(void)
_ecore_thread_init(void)
{
_ecore_thread_init++;
_ecore_thread_initcount++;
if (_ecore_thread_init > 1) return _ecore_thread_init;
if (_ecore_thread_initcount > 1) return _ecore_thread_initcount;
_ecore_thread_count_max = eina_cpu_count();
if (_ecore_thread_count_max <= 0)
@ -148,15 +148,15 @@ ecore_thread_init(void)
#ifdef BUILD_PTHREAD
del_handler = ecore_event_handler_add(ECORE_THREAD_PIPE_DEL, _ecore_thread_pipe_del, NULL);
#endif
return _ecore_thread_init;
return _ecore_thread_initcount;
}
int
ecore_thread_shutdown(void)
_ecore_thread_shutdown(void)
{
_ecore_thread_init--;
_ecore_thread_initcount--;
if (!_ecore_thread_init)
if (!_ecore_thread_initcount)
{
/* FIXME: If function are still running in the background, should we kill them ? */
#ifdef BUILD_PTHREAD
@ -165,7 +165,7 @@ ecore_thread_shutdown(void)
#endif
}
return _ecore_thread_init;
return _ecore_thread_initcount;
}
/*