annotate codegear/ThreadPoolExecutors.cs @ 26:45ff08d59fda

update CGM
author riono <e165729@ie.u-ryukyu.ac.jp>
date Tue, 12 Jan 2021 21:23:23 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 using System.Threading;
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 using System.Threading.Tasks;
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 namespace Christie_net.codegear {
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 public class ThreadPoolExecutors {
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 public ThreadPoolExecutors() {
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 }
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 public void CreateThreadPool() {
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 }
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 public void Execute(CodeGearExecutor command) {
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 Task.Factory.StartNew(() => command.Run());
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 }
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 }
45ff08d59fda update CGM
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 }