thSoft / elysium

LilyPond IDE for Eclipse
http://elysium.thsoft.hu
14 stars 3 forks source link

restrict number of parallel running LilyPond instances #82

Closed nittka closed 9 years ago

nittka commented 9 years ago

On my machine a clean build of a project with many files freezes the system because many LilyPond instances are running simultaneously. I propose that the user can configure the number of parallel executions (on the already existing compiler preference page).

The implementation makes use of scheduling rules preventing multiple jobs with the same rule running at the same time.

nittka commented 9 years ago

If you like the modification in general, please do not merge yet. I'd like to get rid of the static map holding the scheduling rules first. I have an idea and will give it a try, when I have time.

thSoft commented 9 years ago

Isn't MultiRule appropriate for this purpose?

nittka commented 9 years ago

MultiRule sounds more like applying more than one scheduling rule to the same job. What I want is n distinct scheduling rules (where n is the number of parallel executions), that do not conflict with each other but only each with itself.

thSoft commented 9 years ago

Works great, thanks!