Author: spouliot
Date: 2005-05-26 08:40:19 -0400 (Thu, 26 May 2005)
New Revision: 45040

Modified:
   trunk/mcs/class/corlib/System.Threading/ChangeLog
   trunk/mcs/class/corlib/System.Threading/SynchronizationContext.cs
Log:
2005-05-26  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * SynchronizationContext.cs: Updated to beta2 API so it doesn't depend
        on the switcher structure anymore (which will be removed from the 
        build).



Modified: trunk/mcs/class/corlib/System.Threading/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Threading/ChangeLog   2005-05-26 12:34:41 UTC 
(rev 45039)
+++ trunk/mcs/class/corlib/System.Threading/ChangeLog   2005-05-26 12:40:19 UTC 
(rev 45040)
@@ -1,3 +1,9 @@
+2005-05-26  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * SynchronizationContext.cs: Updated to beta2 API so it doesn't depend
+       on the switcher structure anymore (which will be removed from the 
+       build).
+
 2005-05-24  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * Thread.cs: Removed #pragma which aren't supported by CSC 7.x.

Modified: trunk/mcs/class/corlib/System.Threading/SynchronizationContext.cs
===================================================================
--- trunk/mcs/class/corlib/System.Threading/SynchronizationContext.cs   
2005-05-26 12:34:41 UTC (rev 45039)
+++ trunk/mcs/class/corlib/System.Threading/SynchronizationContext.cs   
2005-05-26 12:40:19 UTC (rev 45040)
@@ -4,10 +4,8 @@
 // Author:
 //   Lluis Sanchez ([EMAIL PROTECTED])
 //
-// Copyright (C) Novell, Inc., 2004
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
-
-//
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // "Software"), to deal in the Software without restriction, including
@@ -35,7 +33,6 @@
 
 namespace System.Threading 
 {
-       [ComVisibleAttribute (false)]
        public class SynchronizationContext
        {
                [ThreadStatic]
@@ -59,6 +56,24 @@
                {
                        return new SynchronizationContext (this);
                }
+
+               [MonoTODO]
+               public bool IsWaitNotificationRequired ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public virtual void OperationCompleted ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public virtual void OperationStarted ()
+               {
+                       throw new NotImplementedException ();
+               }
                
                public virtual void Post (SendOrPostCallback d, object state)
                {
@@ -70,24 +85,20 @@
                        d (state);
                }
                
-               public virtual void SendOrPost (SendOrPostCallback d, object 
state)
-               {
-                       Send (d, state);
-               }
-
                [MonoTODO]
-               public virtual void SendOrPost (SendOrPostCallback d, object 
state, ExecutionContext ec)
+               public static void SetSynchronizationContext 
(SynchronizationContext syncContext)
                {
                        throw new NotImplementedException ();
                }
-               
+
                [MonoTODO]
-               public static SynchronizationContextSwitcher 
SetSynchronizationContext (SynchronizationContext syncContext)
+               protected void SetWaitNotificationRequired ()
                {
                        throw new NotImplementedException ();
                }
 
                [CLSCompliant (false)]
+               [PrePrepareMethod ()]
                public virtual int Wait (IntPtr[] waitHandles, bool waitAll, 
int millisecondsTimeout)
                {
                        return WaitHelper (waitHandles, waitAll, 
millisecondsTimeout);
@@ -96,6 +107,7 @@
                [MonoTODO]
                [CLSCompliant (false)]
                [ReliabilityContract (Consistency.WillNotCorruptState, 
Cer.MayFail)]
+               [PrePrepareMethod ()]
                protected static int WaitHelper (IntPtr[] waitHandles, bool 
waitAll, int millisecondsTimeout)
                {
                        throw new NotImplementedException ();

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to