Alex,

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, <[email protected]> wrote:

> Hi,
>
> 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
other.
SCons should then avoid running two jobs which touch the same sideeffect
file..

-Bill
_______________________________________________
Scons-dev mailing list
[email protected]
http://two.pairlist.net/mailman/listinfo/scons-dev

Reply via email to