[Pkg-mono-svn-commits] [mono] 14/23: Use InterlockedDecrement64 () for Interlocked.Decrement (long&). (cherry picked from commit 15f9be5d0367b5d5ee168b038878d098ee51d5aa)
Jo Shields
directhex at alioth.debian.org
Wed Oct 23 22:14:30 UTC 2013
This is an automated email from the git hooks/post-receive script.
directhex pushed a commit to branch master-experimental-patches/atomics_support_on_fringe_32bit_platforms
in repository mono.
commit c1a8be1097f89b2fd75e29ca32319acc27812e95
Author: Alex Rønne Petersen <alexrp at xamarin.com>
Date: Wed Sep 25 20:20:53 2013 +0200
Use InterlockedDecrement64 () for Interlocked.Decrement (long&).
(cherry picked from commit 15f9be5d0367b5d5ee168b038878d098ee51d5aa)
---
mono/metadata/threads.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/mono/metadata/threads.c b/mono/metadata/threads.c
index b4c7a72..66e7f8c 100755
--- a/mono/metadata/threads.c
+++ b/mono/metadata/threads.c
@@ -1799,15 +1799,7 @@ gint32 ves_icall_System_Threading_Interlocked_Decrement_Int (gint32 *location)
gint64 ves_icall_System_Threading_Interlocked_Decrement_Long (gint64 * location)
{
- gint64 ret;
-
- mono_interlocked_lock ();
-
- ret = -- *location;
-
- mono_interlocked_unlock ();
-
- return ret;
+ return InterlockedDecrement64 (location);
}
gint32 ves_icall_System_Threading_Interlocked_Exchange_Int (gint32 *location, gint32 value)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mono/packages/mono.git
More information about the Pkg-mono-svn-commits
mailing list