Skip to content

Instantly share code, notes, and snippets.

@rolfbjarne
Last active February 1, 2016 17:22
Show Gist options
  • Save rolfbjarne/0ef2c7b5b619bea98643 to your computer and use it in GitHub Desktop.
Save rolfbjarne/0ef2c7b5b619bea98643 to your computer and use it in GitHub Desktop.
diff --git a/external/cecil b/external/cecil
--- a/external/cecil
+++ b/external/cecil
@@ -1 +1 @@
-Subproject commit 33d50b874fd527118bc361d83de3d494e8bb55e1
+Subproject commit 33d50b874fd527118bc361d83de3d494e8bb55e1-dirty
diff --git a/mcs/class/corlib/Test/System.Threading/ThreadLocalTests.cs b/mcs/class/corlib/Test/System.Threading/ThreadLocalTests.cs
index aefa9ab..984a75d 100644
--- a/mcs/class/corlib/Test/System.Threading/ThreadLocalTests.cs
+++ b/mcs/class/corlib/Test/System.Threading/ThreadLocalTests.cs
@@ -188,16 +188,23 @@ namespace MonoTests.System.Threading
~SetMreOnFinalize()
{
+ Console.WriteLine ("DisposeOnThreadExit setting");
m_mres.Set();
+ Console.WriteLine ("DisposeOnThreadExit set");
}
}
[Test]
public void DisposeOnThreadExit ()
{
+ Console.WriteLine ("DisposeOnThreadExit");
var threadLocal = new ThreadLocal<SetMreOnFinalize>();
var mres = new ManualResetEventSlim(false);
- var thread = new Thread (() => { threadLocal.Value = new SetMreOnFinalize (mres); });
+ var thread = new Thread (() => {
+ Console.WriteLine ("DisposeOnThreadExit start");
+ threadLocal.Value = new SetMreOnFinalize (mres);
+ Console.WriteLine ("DisposeOnThreadExit done");
+ });
thread.Start ();
thread.Join ();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment