summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcarlos <caiosignor@gmail.com>2020-04-14 13:29:35 -0300
committerJoão Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>2020-04-29 12:13:38 -0300
commit1b3f60780e83716e4233e8e7db6f52ecc7c36a8a (patch)
tree55391a7c27b10b9c515ca823dd418ca4aca50cef
parent845c3231909edba04ec120fcf7c2c462927a91c6 (diff)
headers comuns agora estao em eina_thread.h
-rw-r--r--src/lib/eina/eina_thread.h5
-rw-r--r--src/lib/eina/eina_thread_posix.h7
-rw-r--r--src/lib/eina/eina_thread_win32.h6
3 files changed, 7 insertions, 11 deletions
diff --git a/src/lib/eina/eina_thread.h b/src/lib/eina/eina_thread.h
index dda08c86a5..bea52685e0 100644
--- a/src/lib/eina/eina_thread.h
+++ b/src/lib/eina/eina_thread.h
@@ -19,11 +19,14 @@
19#ifndef EINA_THREAD_H_ 19#ifndef EINA_THREAD_H_
20#define EINA_THREAD_H_ 20#define EINA_THREAD_H_
21 21
22#include <stdlib.h>
23#include "eina_config.h"
24#include "eina_cpu.h"
22#include "eina_config.h" 25#include "eina_config.h"
23#include "eina_types.h" 26#include "eina_types.h"
24#include "eina_error.h" 27#include "eina_error.h"
25
26#include <stdint.h> 28#include <stdint.h>
29#include <errno.h>
27 30
28#ifdef _WIN32 31#ifdef _WIN32
29# include "eina_thread_win32.h" 32# include "eina_thread_win32.h"
diff --git a/src/lib/eina/eina_thread_posix.h b/src/lib/eina/eina_thread_posix.h
index ecd00fe865..e98fe25bcf 100644
--- a/src/lib/eina/eina_thread_posix.h
+++ b/src/lib/eina/eina_thread_posix.h
@@ -23,16 +23,11 @@
23# include "config.h" 23# include "config.h"
24#endif 24#endif
25 25
26#include <stdlib.h>
27
28#include "eina_config.h"
29#include "eina_thread.h" 26#include "eina_thread.h"
30#include "eina_cpu.h"
31#include <pthread.h> 27#include <pthread.h>
32#include "eina_safety_checks.h" 28#include "eina_safety_checks.h"
33#include <errno.h>
34
35#include <signal.h> 29#include <signal.h>
30
36#define EINA_THREAD_CANCEL_ENABLE PTHREAD_CANCEL_ENABLE 31#define EINA_THREAD_CANCEL_ENABLE PTHREAD_CANCEL_ENABLE
37#define EINA_THREAD_CANCEL_DISABLE PTHREAD_CANCEL_DISABLE 32#define EINA_THREAD_CANCEL_DISABLE PTHREAD_CANCEL_DISABLE
38#define EINA_THREAD_CANCEL_DEFERRED PTHREAD_CANCEL_DEFERRED 33#define EINA_THREAD_CANCEL_DEFERRED PTHREAD_CANCEL_DEFERRED
diff --git a/src/lib/eina/eina_thread_win32.h b/src/lib/eina/eina_thread_win32.h
index 190110e223..c28c1fe9b2 100644
--- a/src/lib/eina/eina_thread_win32.h
+++ b/src/lib/eina/eina_thread_win32.h
@@ -23,13 +23,11 @@
23# include "config.h" 23# include "config.h"
24#endif 24#endif
25 25
26#include <stdlib.h> 26
27#include "eina_config.h"
28#include "eina_cpu.h"
29#include "eina_thread.h" 27#include "eina_thread.h"
30#include "unimplemented.h" 28#include "unimplemented.h"
31#include <errno.h> 29#include <errno.h>
32#include <string.h> 30// #include <string.h>
33#ifndef WIN32_LEAN_AND_MEAN 31#ifndef WIN32_LEAN_AND_MEAN
34# define WIN32_LEAN_AND_MEAN 32# define WIN32_LEAN_AND_MEAN
35#endif 33#endif