|
3891a9b68d
|
Separated the job into ThreadPoolJob and ThreadPoolExecuteJob. This design makes everything more resilient to crashes, as it encourages writing encapsulated standalone job classes. The execute job can still be used to just run methods/functions in separate threads.
|
2020-05-30 16:20:53 +02:00 |
|
|
5093853b3f
|
Small fixes.
|
2020-05-24 21:17:32 +02:00 |
|
|
d182f9a24f
|
Also invert the logic.
|
2020-05-24 20:07:30 +02:00 |
|
|
967b21da87
|
Fix typo.
|
2020-05-24 20:00:49 +02:00 |
|
|
7046fa7b08
|
Invert the logic of the 2 control flow functions name.
|
2020-05-24 19:59:40 +02:00 |
|
|
c69a2a9db4
|
When not using threading just return the head of the queue in get_running_job.
|
2020-05-24 19:58:09 +02:00 |
|
|
61fffea0a4
|
Tasks can be cancelled now.
|
2020-05-24 19:52:27 +02:00 |
|
|
222e9fa6cd
|
Now the module actually works.
|
2020-05-24 19:04:02 +02:00 |
|
|
ded9df9772
|
Setup the ThreadPool singleton's api itself.
|
2020-05-24 12:39:17 +02:00 |
|
|
0047fb6c4c
|
Added ThreadPoolJob.
|
2020-05-24 11:51:05 +02:00 |
|
|
13f3c60a71
|
Fix copy paste error.
|
2020-05-24 11:50:55 +02:00 |
|
|
19b27c3da3
|
Setup the ThreadPool singleton.
|
2020-05-24 10:54:15 +02:00 |
|
|
f89e3c59aa
|
Fix copy paste fail.
|
2020-05-24 10:46:49 +02:00 |
|
|
f772f49c87
|
Initial commit.
|
2020-05-24 10:42:29 +02:00 |
|