X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=include%2Furcu%2Ffutex.h;h=753df622005f8d4103010e9f324827e8f97f2b62;hp=0486ff6a1830f174d7471164a282507a6d1f756c;hb=bb109fb6bc458b93cdc29c2e597efb8331e94ca1;hpb=34b11dd41c618c0dd29313ad37f05d6a5bca868a diff --git a/include/urcu/futex.h b/include/urcu/futex.h index 0486ff6..753df62 100644 --- a/include/urcu/futex.h +++ b/include/urcu/futex.h @@ -102,6 +102,25 @@ static inline int futex_async(int32_t *uaddr, int op, int32_t val, return ret; } +#elif defined(__CYGWIN__) + +/* + * The futex_noasync compat code uses a weak symbol to share state across + * different shared object which is not possible on Windows with the + * Portable Executable format. Use the async compat code for both cases. + */ +static inline int futex_noasync(int32_t *uaddr, int op, int32_t val, + const struct timespec *timeout, int32_t *uaddr2, int32_t val3) +{ + return compat_futex_async(uaddr, op, val, timeout, uaddr2, val3); +} + +static inline int futex_async(int32_t *uaddr, int op, int32_t val, + const struct timespec *timeout, int32_t *uaddr2, int32_t val3) +{ + return compat_futex_async(uaddr, op, val, timeout, uaddr2, val3); +} + #else static inline int futex_noasync(int32_t *uaddr, int op, int32_t val,