Exemplo n.º 1
0
 private void do_plans()
 {
     Builtin_Plans.CreateBookShelf().Execute();
     Builtin_Plans.CreateFamilyRoomShelf().Execute();
     Builtin_Plans.CreateTable().Execute();
     Builtin_Plans.CreateMiteredBoard().Execute();
 }
Exemplo n.º 2
0
        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();
                }
            }
                               );
        }