[Scons-dev] SCons with shared resource
bill at baddogconsulting.com
Wed Nov 20 18:36:03 EST 2013
Please send such emails to the users mailing list. The dev mailing list is
intended to discuss the internal development of SCons.
See comments below.
On Wed, Nov 20, 2013 at 3:03 PM, <Alex.Burton at csiro.au> wrote:
> I am successfully using scons for batch processing of simulation work.
> Unfortunately some of the tasks share resources that prevent them being
> executed in parallel.
> Other tasks are can be run in parallel.
> This means that I need to run scons in single processor mode, meaning some
> tasks are unnecessarily serialised.
> I am considering modifying the scons code to allow specification of a
> shared resource/ mutex for certain tasks.
> Does anyone have any advise as to how this is best implemented ?
One simple way to do this is to add a non existant file as a SideEffect()
(see man page).
Of those processes which you want to prevent running in parallel with each
SCons should then avoid running two jobs which touch the same sideeffect
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Scons-dev