diff options
author | Jean Guyomarc'h <jean.guyomarch@gmail.com> | 2014-08-21 11:23:24 +0200 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2014-08-21 12:04:53 +0200 |
commit | f449f0ddb6c030e1763cc549caac5e162efbca74 (patch) | |
tree | b108946ace8d71909c36ab0facbb2bcbbc6438be /configure.ac | |
parent | f5b81093978fbbe411f9fb509617b6f4081f8da8 (diff) |
eina: port Eina_Spinlock for OSX
Summary: Support of Spinlocks in Eina (Eina_Spinlock) for OSX, which does not implement them in pthread.
@feature
Reviewers: raster, raoulh, naguirre, cedric, stefan_schmidt
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D1151
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index dbd24ccbc2..c39c5505dd 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -936,6 +936,7 @@ EINA_CONFIG([HAVE_PTHREAD_BARRIER], [test "x${efl_have_pthread_barrier}" = "xyes | |||
936 | EINA_CONFIG([HAVE_PTHREAD_AFFINITY], [test "x${efl_have_setaffinity}" = "xyes"]) | 936 | EINA_CONFIG([HAVE_PTHREAD_AFFINITY], [test "x${efl_have_setaffinity}" = "xyes"]) |
937 | EINA_CONFIG([HAVE_DEBUG_THREADS], [test "x${want_debug_threads}" = "xyes"]) | 937 | EINA_CONFIG([HAVE_DEBUG_THREADS], [test "x${want_debug_threads}" = "xyes"]) |
938 | EINA_CONFIG([HAVE_POSIX_SPINLOCK], [test "x${efl_have_posix_threads_spinlock}" = "xyes"]) | 938 | EINA_CONFIG([HAVE_POSIX_SPINLOCK], [test "x${efl_have_posix_threads_spinlock}" = "xyes"]) |
939 | EINA_CONFIG([HAVE_OSX_SPINLOCK], [test "x${efl_have_osx_spinlock}" = "xyes"]) | ||
939 | 940 | ||
940 | ### Modules | 941 | ### Modules |
941 | 942 | ||
@@ -4498,7 +4499,12 @@ elif test "${have_windows}" = "yes"; then | |||
4498 | fi | 4499 | fi |
4499 | EFL_ADD_FEATURE([system], [ipv6]) | 4500 | EFL_ADD_FEATURE([system], [ipv6]) |
4500 | 4501 | ||
4501 | EFL_ADD_FEATURE([thread], [spinlocks], [${efl_have_posix_threads_spinlock}]) | 4502 | if test "x${efl_have_posix_threads_spinlock}" = "xyes" || test "x${efl_have_osx_spinlock}" = "xyes"; then |
4503 | efl_have_spinlock="yes" | ||
4504 | else | ||
4505 | efl_have_spinlock="no" | ||
4506 | fi | ||
4507 | EFL_ADD_FEATURE([thread], [spinlocks], [${efl_have_spinlock}]) | ||
4502 | EFL_ADD_FEATURE([thread], [barrier], [${efl_have_pthread_barrier}]) | 4508 | EFL_ADD_FEATURE([thread], [barrier], [${efl_have_pthread_barrier}]) |
4503 | EFL_ADD_FEATURE([thread], [affinity], [${efl_have_setaffinity}]) | 4509 | EFL_ADD_FEATURE([thread], [affinity], [${efl_have_setaffinity}]) |
4504 | 4510 | ||