Browse Source

* Thread.cs: Changed implementation of CurrentContext, adapted to the changes
in the runtime.

svn path=/trunk/mcs/; revision=12141

Lluis Sanchez 23 years ago
parent
commit
21a8a1c413

+ 5 - 0
mcs/class/corlib/System.Threading/ChangeLog

@@ -1,3 +1,8 @@
+2003-03-03  Lluis Sanchez Gual <[email protected]>
+
+	* Thread.cs: Changed implementation of CurrentContext, adapted to the changes
+	  in the runtime.
+
 2003-02-19  Gonzalo Paniagua Javier <[email protected]>
 
 	* Thread.cs: implemented CurrentContext.

+ 1 - 7
mcs/class/corlib/System.Threading/Thread.cs

@@ -35,13 +35,7 @@ namespace System.Threading
 		
 		public static Context CurrentContext {
 			get {
-				Context ctx = AppDomain.InternalGetContext ();
-				if (ctx == null) {
-					ctx = Context.DefaultContext;
-					AppDomain.InternalSetContext (ctx);
-				}
-
-				return ctx;
+				return(AppDomain.InternalGetContext ());
 			}
 		}