deva-rajan / hamake

Automatically exported from code.google.com/p/hamake
0 stars 0 forks source link

<fold> does not respect -j #53

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

  1. create a hamakefile with many <fold> rules that can run in parallel
  2. run hamake without specifying a target but with -j <n> where <n> is less than the
     number of rules you created in step 1

What is the expected output? What do you see instead?

  All tasks will be run in parallel, instead of only <n> tasks at a time.

Please use labels and text to provide additional information.

  I've attached a patch that uses the semaphore logic from Foreach.java in Fold.java as well.

Original issue reported on code.google.com by petenewc...@gmail.com on 25 Aug 2011 at 10:42

Attachments: