diff options
Diffstat (limited to 'mcs/class')
-rw-r--r-- | mcs/class/corlib/System.Threading/Thread.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mcs/class/corlib/System.Threading/Thread.cs b/mcs/class/corlib/System.Threading/Thread.cs index f5c4b314e63..7e2db6cff11 100644 --- a/mcs/class/corlib/System.Threading/Thread.cs +++ b/mcs/class/corlib/System.Threading/Thread.cs @@ -306,7 +306,13 @@ namespace System.Threading { #endif [MethodImplAttribute(MethodImplOptions.InternalCall)] - private extern static Thread GetCurrentThread (); + private extern static void GetCurrentThread_icall (ref Thread thread); + + private static Thread GetCurrentThread () { + Thread thread = null; + GetCurrentThread_icall (ref thread); + return thread; + } public static Thread CurrentThread { [ReliabilityContract (Consistency.WillNotCorruptState, Cer.MayFail)] |