Task #2508

Improve and clean org.txm.rcp.utils.JobHandler

Ajouté par Sebastien Jacquot il y a plus de 6 ans. Mis à jour il y a plus de 4 ans.

Statut:New Début:25/02/2019
Priorité:Normal Echéance:
Assigné à:- % réalisé:

0%

Catégorie:Development Temps passé: -
Version cible:TXM 0.8.4

Description

Improve, clean, remove useless complex code in org.txm.rcp.utils.JobHandler:
- do not implement IProgressMonitor
- do not store an IProgressMonitor
- remove all the wrapping method
- remove runInit() method?
- do not store the Thread if Job.this.getThread().stop() is sufficient to kill the process
- keep Semaphore only if it's really needed. NOTE: it's useless for the thread stopping
- the thread stopping only work for the current thread. For example the TXMResult.compute() process can be cancelled in throwing a ThreadDeath exception but the UI process (JobHandler.syncExe()) can not be interrupted at this moment. For example it's not possible to interrupt the load of a "big" SVG file or the sort of a huge UI table. Try to improve the system so the process can be also interrupted by the user

Historique

#1 Mis à jour par Matthieu Decorde il y a plus de 4 ans

  • Version cible changé de TXM 0.8.2 à TXM 0.8.4

Formats disponibles : Atom PDF