[Pkg-mono-svn-commits] [mono] 13/23: Use InterlockedIncrement64 () for Interlocked.Increment (long&). (cherry picked from commit bb62cced7ef4145ad1feb5c1acdc5c324ce1ec23)
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 07c705d468b7f42ad353eb86de2b7284693b656d
Author: Alex Rønne Petersen <alexrp at xamarin.com>
Date: Wed Sep 25 20:20:20 2013 +0200
Use InterlockedIncrement64 () for Interlocked.Increment (long&).
(cherry picked from commit bb62cced7ef4145ad1feb5c1acdc5c324ce1ec23)
---
mono/metadata/threads.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/mono/metadata/threads.c b/mono/metadata/threads.c
index bd95303..b4c7a72 100755
--- a/mono/metadata/threads.c
+++ b/mono/metadata/threads.c
@@ -1789,16 +1789,7 @@ gint32 ves_icall_System_Threading_Interlocked_Increment_Int (gint32 *location)
gint64 ves_icall_System_Threading_Interlocked_Increment_Long (gint64 *location)
{
- gint64 ret;
-
- mono_interlocked_lock ();
-
- ret = ++ *location;
-
- mono_interlocked_unlock ();
-
-
- return ret;
+ return InterlockedIncrement64 (location);
}
gint32 ves_icall_System_Threading_Interlocked_Decrement_Int (gint32 *location)
--
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