Author: spouliot
Date: 2005-04-28 08:18:44 -0400 (Thu, 28 Apr 2005)
New Revision: 43716

Modified:
   trunk/mcs/class/corlib/System.Threading/ChangeLog
   trunk/mcs/class/corlib/System.Threading/Thread.cs
Log:
2005-04-28  Sebastien Pouliot  <[EMAIL PROTECTED]> 
 
        * Thread.cs: Added internal property to get the ExecutionContext.


Modified: trunk/mcs/class/corlib/System.Threading/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Threading/ChangeLog   2005-04-28 12:13:22 UTC 
(rev 43715)
+++ trunk/mcs/class/corlib/System.Threading/ChangeLog   2005-04-28 12:18:44 UTC 
(rev 43716)
@@ -1,5 +1,5 @@
-2005-04-28  Sebastien Pouliot  <[EMAIL PROTECTED]>
-
+2005-04-28  Sebastien Pouliot  <[EMAIL PROTECTED]> 
+ 
        * AsyncFlowControl.cs: Updated wrt beta2.
        * ExecutionContext.cs: Updated wrt beta2. Class is now internal in 
        NET_1_1 to allow the compressed stack propagation to other threads.
@@ -8,6 +8,7 @@
        * ContextCallback.cs: Updated wrt beta2.
        * HostExecutionContext.cs: Updated wrt beta2.
        * HostExecutionContextManager.cs: Updated wrt beta2.
+       * Thread.cs: Added internal property to get the ExecutionContext.
 
 2005-04-19  Zoltan Varga  <[EMAIL PROTECTED]>
 

Modified: trunk/mcs/class/corlib/System.Threading/Thread.cs
===================================================================
--- trunk/mcs/class/corlib/System.Threading/Thread.cs   2005-04-28 12:13:22 UTC 
(rev 43715)
+++ trunk/mcs/class/corlib/System.Threading/Thread.cs   2005-04-28 12:18:44 UTC 
(rev 43716)
@@ -109,6 +109,7 @@
                private IPrincipal _principal;
 
                private CompressedStack _stack;
+               private ExecutionContext _ec;
                
                public static Context CurrentContext {
                        [SecurityPermission (SecurityAction.LinkDemand, 
Infrastructure=true)]
@@ -938,6 +939,14 @@
                {
                        return _stack;
                }
+
+               internal ExecutionContext ExecutionContext {
+                       get {
+                               if (_ec == null)
+                                       _ec = new ExecutionContext ();
+                               return _ec;
+                       }
+               }
 #endif
        }
 }

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

Reply via email to