X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=compat_futex.c;h=9e918fe8e2aac035dc39e6e23868410348d02627;hp=6fe378f965d4407734fe16f3ffcc8ff8eb4afbb1;hb=a59f39055b5ecb77b68cf78b9839aa9e8e4ec332;hpb=54fd78efce9aeddcdc7b35151ad6744b7ee629cb diff --git a/compat_futex.c b/compat_futex.c index 6fe378f..9e918fe 100644 --- a/compat_futex.c +++ b/compat_futex.c @@ -58,7 +58,7 @@ int compat_futex_noasync(int32_t *uaddr, int op, int32_t val, /* * Check if NULL. Don't let users expect that they are taken into - * account. + * account. */ assert(!timeout); assert(!uaddr2); @@ -111,6 +111,8 @@ end: * _ASYNC SIGNAL-SAFE_. * For now, timeout, uaddr2 and val3 are unused. * Waiter will busy-loop trying to read the condition. + * It is OK to use compat_futex_async() on a futex address on which + * futex() WAKE operations are also performed. */ int compat_futex_async(int32_t *uaddr, int op, int32_t val, @@ -120,7 +122,7 @@ int compat_futex_async(int32_t *uaddr, int op, int32_t val, /* * Check if NULL. Don't let users expect that they are taken into - * account. + * account. */ assert(!timeout); assert(!uaddr2);