summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-10-10 17:22:28 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-10-11 11:08:17 +0900
commit1b07350a460fd7177d894116f422577325842225 (patch)
tree68a29da1e957c547e1687221c053d8dcf256e4e2 /m4
parenta230728162efd743cec18f8e2a000aac8dab0580 (diff)
eina: add Eina_Spinlock API.
Diffstat (limited to 'm4')
-rw-r--r--m4/efl_threads.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/m4/efl_threads.m4 b/m4/efl_threads.m4
index a657500..e7a84b3 100644
--- a/m4/efl_threads.m4
+++ b/m4/efl_threads.m4
@@ -116,11 +116,13 @@ if test "x${_efl_have_posix_threads}" = "xyes" ; then
116 AC_LINK_IFELSE( 116 AC_LINK_IFELSE(
117 [AC_LANG_PROGRAM([[ 117 [AC_LANG_PROGRAM([[
118#include <pthread.h> 118#include <pthread.h>
119#include <sched.h>
119 ]], 120 ]],
120 [[ 121 [[
121pthread_spinlock_t lock; 122pthread_spinlock_t lock;
122int res; 123int res;
123res = pthread_spin_init(&lock, PTHREAD_PROCESS_PRIVATE); 124res = pthread_spin_init(&lock, PTHREAD_PROCESS_PRIVATE);
125sched_yield();
124 ]])], 126 ]])],
125 [efl_have_posix_threads_spinlock="yes"], 127 [efl_have_posix_threads_spinlock="yes"],
126 [efl_have_posix_threads_spinlock="no"]) 128 [efl_have_posix_threads_spinlock="no"])