Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / thread-2.cs
1 //
2 // thread-2.cs:
3 //
4 //  Tests for net 2.0 thread features
5 //
6
7 using System;
8 using System.Threading;
9
10 public class Tests
11 {
12         public static int Main () {
13                 return TestDriver.RunTests (typeof (Tests));
14         }
15
16         public static bool started = false;
17
18         public static void Start (object o) {
19                 started = true;
20         }
21
22         public static int test_0_parameterized_thread_start () {
23                 Thread t = new Thread (new ParameterizedThreadStart (Start));
24                 t.Start ("AB");
25
26                 return started ? 0 : 1;
27         }
28 }