コード例 #1
0
        public void Run(ThreadAllocator allocator)
        {
            if (Started)
            {
                throw new ThreadAlreadyStartedException();
            }
            Started = true;

            Thread = allocator.Allocate(Method);

            Thread.Start();
        }
コード例 #2
0
 public ThreadManager()
 {
     Allocator = CreateAllocator();
 }