예제 #1
0
파일: test_perf.cs 프로젝트: thild/sawdust
 private void do_plans()
 {
     Builtin_Plans.CreateBookShelf().Execute();
     Builtin_Plans.CreateFamilyRoomShelf().Execute();
     Builtin_Plans.CreateTable().Execute();
     Builtin_Plans.CreateMiteredBoard().Execute();
 }
예제 #2
0
파일: test_perf.cs 프로젝트: thild/sawdust
        public void do_plans_threaded()
        {
            List <Plan> plans = new List <Plan>();

            plans.Add(Builtin_Plans.CreateBookShelf());
            plans.Add(Builtin_Plans.CreateFamilyRoomShelf());
            plans.Add(Builtin_Plans.CreateTable());
            plans.Add(Builtin_Plans.CreateMiteredBoard());

            multicore.Map_Void(plans,
                               delegate(Plan p)
            {
                for (int i = 0; i < 32; i++)
                {
                    p.Execute();
                }
            }
                               );
        }