From: danmosemsft Date: Mon, 23 Jan 2017 04:48:38 +0000 (-0800) Subject: FEATURE_SYNCHRONIZATIONCONTEXT_WAIT X-Git-Tag: accepted/tizen/base/20180629.140029~2539^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a0a5473c5e146891eb02d65afcddb060363ff4b;p=platform%2Fupstream%2Fcoreclr.git FEATURE_SYNCHRONIZATIONCONTEXT_WAIT --- diff --git a/clr.coreclr.props b/clr.coreclr.props index 89dce77..d48ce23 100644 --- a/clr.coreclr.props +++ b/clr.coreclr.props @@ -39,7 +39,6 @@ true true - true true true true diff --git a/clr.defines.targets b/clr.defines.targets index 01493d7..58256c2 100644 --- a/clr.defines.targets +++ b/clr.defines.targets @@ -84,9 +84,7 @@ $(CDefines);FEATURE_STANDALONE_SN $(CDefines);FEATURE_STRONGNAME_DELAY_SIGNING_ALLOWED $(CDefines);FEATURE_SVR_GC - $(CDefines);FEATURE_SYNCHRONIZATIONCONTEXT_WAIT $(CDefines);FEATURE_PERFMAP - $(CDefines);FEATURE_SYNCHRONIZATIONCONTEXT_WAIT $(CDefines);FEATURE_SYNTHETIC_CULTURES $(CDefines);FEATURE_TYPEEQUIVALENCE $(CDefines);FEATURE_UEF_CHAINMANAGER @@ -161,7 +159,6 @@ $(DefineConstants);FEATURE_RWLOCK $(DefineConstants);FEATURE_SERIALIZATION $(DefineConstants);FEATURE_SORT_TABLES - $(DefineConstants);FEATURE_SYNCHRONIZATIONCONTEXT_WAIT $(DefineConstants);FEATURE_SYNTHETIC_CULTURES $(DefineConstants);FEATURE_TYPEEQUIVALENCE $(DefineConstants);FEATURE_USE_LCID diff --git a/clr.desktop.props b/clr.desktop.props index e10f048..d3768a8 100644 --- a/clr.desktop.props +++ b/clr.desktop.props @@ -70,7 +70,6 @@ true true true - true true true true diff --git a/src/mscorlib/src/System/Threading/SynchronizationContext.cs b/src/mscorlib/src/System/Threading/SynchronizationContext.cs index 7e573f4..19f32ee 100644 --- a/src/mscorlib/src/System/Threading/SynchronizationContext.cs +++ b/src/mscorlib/src/System/Threading/SynchronizationContext.cs @@ -27,14 +27,12 @@ namespace System.Threading using System.Diagnostics.CodeAnalysis; -#if FEATURE_SYNCHRONIZATIONCONTEXT_WAIT [Flags] enum SynchronizationContextProperties { None = 0, RequireWaitNotification = 0x1 }; -#endif #if FEATURE_COMINTEROP && FEATURE_APPX // @@ -50,15 +48,12 @@ namespace System.Threading public class SynchronizationContext { -#if FEATURE_SYNCHRONIZATIONCONTEXT_WAIT SynchronizationContextProperties _props = SynchronizationContextProperties.None; -#endif public SynchronizationContext() { } -#if FEATURE_SYNCHRONIZATIONCONTEXT_WAIT // helper delegate to statically bind to Wait method private delegate int WaitDelegate(IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout); @@ -107,7 +102,6 @@ namespace System.Threading { return ((_props & SynchronizationContextProperties.RequireWaitNotification) != 0); } -#endif public virtual void Send(SendOrPostCallback d, Object state) @@ -135,7 +129,6 @@ namespace System.Threading { } -#if FEATURE_SYNCHRONIZATIONCONTEXT_WAIT // Method called when the CLR does a wait operation [CLSCompliant(false)] [PrePrepareMethod] @@ -166,7 +159,6 @@ namespace System.Threading [MethodImplAttribute(MethodImplOptions.InternalCall)] [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)] private static extern int WaitHelperNative(IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout); -#endif public static void SetSynchronizationContext(SynchronizationContext syncContext) { @@ -258,11 +250,9 @@ namespace System.Threading return new SynchronizationContext(); } -#if FEATURE_SYNCHRONIZATIONCONTEXT_WAIT private static int InvokeWaitMethodHelper(SynchronizationContext syncContext, IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout) { return syncContext.Wait(waitHandles, waitAll, millisecondsTimeout); } -#endif } }