コード例 #1
0
ファイル: waitallex6a.cs プロジェクト: Fredo-Q/dotnet-coreclr
    public static int Main(string[] args)
    {
        // Check number of args
        if (args.Length != 2)
        {
            Console.WriteLine("USAGE:  WaitAllEx6a /size:<int> /pos:<int>");
            return(-1);
        }

        // Get the args
        int iPos = -1, iSize = -1;;

        for (int i = 0; i < args.Length; i++)
        {
            if (args[i].ToLower().StartsWith("/size:"))
            {
                iSize = Convert.ToInt32(args[i].Substring(6));
                continue;
            }

            if (args[i].ToLower().StartsWith("/pos:"))
            {
                iPos = Convert.ToInt32(args[i].Substring(5));
            }
        }

        WaitAllEx wae = new WaitAllEx();

        return(wae.Run(iSize, iPos));
    }
コード例 #2
0
ファイル: waitallex9a.cs プロジェクト: CheneyWu/coreclr
    public static int Main(string[] args)
    {
        // Check number of args
        if(args.Length != 2)
        {
            Console.WriteLine("USAGE:  WaitAllEx9a /size:<int> /pos:<int>");
            return -1;
        }

        // Get the args
        int iPos=-1, iSize = -1;;
        
        for(int i=0;i<args.Length;i++)
        {
            if(args[i].ToLower().StartsWith("/size:"))
            {
                iSize = Convert.ToInt32(args[i].Substring(6));
                continue;
            }

            if(args[i].ToLower().StartsWith("/pos:"))
            {
                iPos = Convert.ToInt32(args[i].Substring(5));
            }
        }

        WaitAllEx wae = new WaitAllEx();
        return wae.Run(iSize, iPos);
    }
コード例 #3
0
ファイル: am01waitallneg.cs プロジェクト: CheneyWu/coreclr
 public static int Main()
 {
     WaitAllEx wae = new WaitAllEx();
     wae.Run();
     Console.WriteLine(wae.iRet == 100 ? "Test Passed!" : "Test Failed");
     return wae.iRet;
 }
コード例 #4
0
    public static int Main()
    {
        WaitAllEx wae = new WaitAllEx();

        wae.Run();
        Console.WriteLine(wae.iRet == 100 ? "Test Passed!" : "Test Failed");
        return(wae.iRet);
    }
コード例 #5
0
    public static int Main()
    {
        WaitAllEx wae = new WaitAllEx();

        return(wae.Run());
    }
コード例 #6
0
ファイル: waitallex8.cs プロジェクト: CheneyWu/coreclr
 public static int Main()
 {
     WaitAllEx wae = new WaitAllEx();
     return wae.Run();
 }