Fix potential crash for Encoder.Convert (#20522)
[mono-project.git] / mono / profiler / test-monitor.cs
blob8e77b2f0a5e7f915dad95775b4b1ab6c7c6ace13
1 using System;
2 using System.Threading;
4 class T {
6 static object mutex = new object ();
7 static int count = 1000000;
9 static void dolock ()
11 for (int i = 0; i < count; ++i) {
12 lock (mutex) {
17 static void Main (string[] args) {
18 Thread t = new Thread (dolock);
19 t.Start ();
20 dolock ();
21 t.Join ();