Mercurial > hg > Database > Christie-sharp
annotate daemon/ThreadPoolExecutors.cs @ 29:0cd2684e401b
update InputDataGear and more
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 21 Jan 2021 01:18:26 +0900 |
parents | efb06874a34e |
children | 96fc5e71274e |
rev | line source |
---|---|
26 | 1 using System.Threading; |
2 using System.Threading.Tasks; | |
27
efb06874a34e
update RemoteDataGearManager
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
26
diff
changeset
|
3 using Christie_net.codegear; |
26 | 4 |
27
efb06874a34e
update RemoteDataGearManager
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
26
diff
changeset
|
5 namespace Christie_net.daemon { |
26 | 6 public class ThreadPoolExecutors { |
7 | |
29
0cd2684e401b
update InputDataGear and more
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
27
diff
changeset
|
8 // TODO: どこかしらでThreadPoolの設定をする |
0cd2684e401b
update InputDataGear and more
riono <e165729@ie.u-ryukyu.ac.jp>
parents:
27
diff
changeset
|
9 |
26 | 10 public ThreadPoolExecutors() { |
11 | |
12 } | |
13 | |
14 public void CreateThreadPool() { | |
15 | |
16 } | |
17 | |
18 public void Execute(CodeGearExecutor command) { | |
19 Task.Factory.StartNew(() => command.Run()); | |
20 } | |
21 } | |
22 } |