forked from enlightenment/efl
Revert "[Eina] Use Eina_Lock and not pthread. Fix compilation on Windows."
SVN revision: 63877 Reverted due to the following build failure: eina_main.c:117:16: error: conflicting types for ‘_eina_tracking_lock’ ../../src/include/eina_inline_lock_posix.x:83:29: note: previous declaration of ‘_eina_tracking_lock’ was here make[3]: *** [libeina_la-eina_main.lo] Error 1 _eina_tracking_lock is used for implementation of Eina_Locks, so cannot be an Eina_Lock Signed-off-by: Mike McCormack <mj.mccormack@samsung.com> SVN revision: 63904
This commit is contained in:
parent
a409fec3f3
commit
d1bfb51324
|
@ -114,7 +114,7 @@ static int _mt_enabled = 0;
|
|||
|
||||
#ifdef EFL_HAVE_THREADS
|
||||
EAPI int _eina_threads_debug = 0;
|
||||
EAPI Eina_Lock _eina_tracking_lock;
|
||||
EAPI pthread_mutex_t _eina_tracking_lock;
|
||||
EAPI Eina_Inlist *_eina_tracking = NULL;
|
||||
#endif
|
||||
|
||||
|
@ -263,7 +263,7 @@ eina_init(void)
|
|||
#endif
|
||||
|
||||
#ifdef EINA_HAVE_DEBUG_THREADS
|
||||
eina_lock_new(&_eina_tracking_lock);
|
||||
pthread_mutex_init(&_eina_tracking_lock, NULL);
|
||||
|
||||
if (getenv("EINA_DEBUG_THREADS"))
|
||||
_eina_threads_debug = atoi(getenv("EINA_DEBUG_THREADS"));
|
||||
|
@ -294,7 +294,7 @@ eina_shutdown(void)
|
|||
_eina_shutdown_from_desc(_eina_desc_setup + _eina_desc_setup_len);
|
||||
|
||||
#ifdef EINA_HAVE_DEBUG_THREADS
|
||||
eina_lock_free(&_eina_tracking_lock);
|
||||
pthread_mutex_destroy(&_eina_tracking_lock);
|
||||
#endif
|
||||
#ifdef MT
|
||||
if (_mt_enabled)
|
||||
|
@ -353,7 +353,7 @@ eina_threads_shutdown(void)
|
|||
return ret;
|
||||
|
||||
#ifdef EINA_HAVE_DEBUG_THREADS
|
||||
eina_lock_take(&_eina_tracking_lock);
|
||||
pthread_mutex_lock(&_eina_tracking_lock);
|
||||
if (_eina_tracking)
|
||||
{
|
||||
fprintf(stderr, "*************************\n");
|
||||
|
@ -365,7 +365,7 @@ eina_threads_shutdown(void)
|
|||
fprintf(stderr, "*************************\n");
|
||||
abort();
|
||||
}
|
||||
eina_lock_release(&_eina_tracking_lock);
|
||||
pthread_mutex_unlock(&_eina_tracking_lock);
|
||||
#endif
|
||||
|
||||
eina_share_common_threads_shutdown();
|
||||
|
|
Loading…
Reference in New Issue