Zebediah Figura : ntdll: Remove no longer used interlocked_dec_if_nonzero( ).

Alexandre Julliard julliard at winehq.org
Tue Jun 11 16:54:06 CDT 2019


Module: wine
Branch: master
Commit: d741296676b7e8dde847f3ba917b77e7f122a4f5
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d741296676b7e8dde847f3ba917b77e7f122a4f5

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Mon Jun 10 11:07:52 2019 -0400

ntdll: Remove no longer used interlocked_dec_if_nonzero().

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/sync.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/dlls/ntdll/sync.c b/dlls/ntdll/sync.c
index edf081a..9c62f8e 100644
--- a/dlls/ntdll/sync.c
+++ b/dlls/ntdll/sync.c
@@ -69,18 +69,6 @@ static const LARGE_INTEGER zero_timeout;
 
 #define TICKSPERSEC 10000000
 
-static inline int interlocked_dec_if_nonzero( int *dest )
-{
-    int val, tmp;
-    for (val = *dest;; val = tmp)
-    {
-        if (!val || (tmp = interlocked_cmpxchg( dest, val - 1, val )) == val)
-            break;
-    }
-    return val;
-}
-
-
 #ifdef __linux__
 
 static int wait_op = 128; /*FUTEX_WAIT|FUTEX_PRIVATE_FLAG*/




More information about the wine-cvs mailing list