forked from enlightenment/efl
parent
c3b33835ea
commit
4da59fea04
|
@ -294,6 +294,11 @@
|
|||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <fnmatch.h>
|
||||
#include <assert.h>
|
||||
|
||||
#ifdef EFL_HAVE_PTHREAD
|
||||
# include <pthread.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_EVIL
|
||||
# include <Evil.h>
|
||||
|
@ -307,8 +312,6 @@
|
|||
#include "eina_safety_checks.h"
|
||||
#include "eina_log.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
/* TODO
|
||||
* + printing logs to stdout or stderr can be implemented
|
||||
* using a queue, useful for multiple threads printing
|
||||
|
@ -359,7 +362,6 @@ static Eina_Bool _abort_on_critical = EINA_FALSE;
|
|||
static int _abort_level_on_critical = EINA_LOG_LEVEL_CRITICAL;
|
||||
|
||||
#ifdef EFL_HAVE_PTHREAD
|
||||
#include <pthread.h>
|
||||
static Eina_Bool _threads_enabled = EINA_FALSE;
|
||||
static pthread_t _main_thread;
|
||||
|
||||
|
|
|
@ -22,6 +22,10 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef EFL_HAVE_PTHREAD
|
||||
# include <pthread.h>
|
||||
#endif
|
||||
|
||||
#include "eina_config.h"
|
||||
#include "eina_private.h"
|
||||
#include "eina_types.h"
|
||||
|
@ -64,7 +68,6 @@ static int _eina_log_dom = -1;
|
|||
#define DBG(...) EINA_LOG_DOM_DBG(_eina_log_dom, __VA_ARGS__)
|
||||
|
||||
#ifdef EFL_HAVE_PTHREAD
|
||||
#include <pthread.h>
|
||||
static Eina_Bool _threads_activated = EINA_FALSE;
|
||||
static pthread_mutex_t _mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
#define LOCK() if(_threads_activated) pthread_mutex_lock(&_mutex);
|
||||
|
|
|
@ -70,6 +70,10 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef EFL_HAVE_PTHREAD
|
||||
# include <pthread.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_EVIL
|
||||
# include <Evil.h>
|
||||
#endif
|
||||
|
@ -177,7 +181,6 @@ static int _eina_stringshare_log_dom = -1;
|
|||
|
||||
|
||||
#ifdef EFL_HAVE_PTHREAD
|
||||
#include <pthread.h>
|
||||
static Eina_Bool _stringshare_threads_activated = EINA_FALSE;
|
||||
//string < 4
|
||||
static pthread_mutex_t _mutex_small = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
|
Loading…
Reference in New Issue