Commit Graph

16 Commits

Author SHA1 Message Date
72049428df Fix compile for 4.0. 2021-02-06 11:53:02 +01:00
862a366e9a execute() now properly resets the current run stage. 2020-08-04 15:24:12 +02:00
0297e4d86d should_so should return true at the end. 2020-08-04 15:15:49 +02:00
ff3224f7d0 Added reset_stages() to ThreadPoolJob. 2020-08-04 14:50:41 +02:00
db1d5d1d81 Remove limit execution time bool, as it's trivial to check for the same thing. 2020-08-04 10:45:32 +02:00
262cdb6638 Fix typo. 2020-08-04 10:39:11 +02:00
1473e2b5f1 Set start time in execute(). 2020-08-04 10:21:24 +02:00
93320fe864 Add a completed signal to the jobs. 2020-06-22 02:32:02 +02:00
acc7759682 4.0 compile fix. 2020-06-20 22:36:49 +02:00
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
d182f9a24f Also invert the logic. 2020-05-24 20:07:30 +02:00
7046fa7b08 Invert the logic of the 2 control flow functions name. 2020-05-24 19:59:40 +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