The new std.process is ready for review

Steven Schveighoffer schveiguy at yahoo.com
Sun Feb 24 07:37:10 PST 2013


On Sun, 24 Feb 2013 10:01:12 -0500, Lars T. Kyllingstad  
<public at kyllingen.net> wrote:


> Wait for all processes:
>
> This would certainly be convenient, and it is simple to implement.  It  
> would require a static __gshared Pid[int] of all processes created by  
> spawnProcess(), and we'd simply call wait() on all of those.

Waiting for ALL processes in an array should be a simple matter of some  
algorithm call.

I didn't see this specific request.  I think the request was to wait for  
any process in a specific subset to complete.  And then of course, the  
"wait for any process."  Either of these is possible similar to how  
core.thread keeps track of all threads, we could simply ignore any child  
exits that we didn't manage.  And I think it's worth implementing at some  
point (this is not an easy problem to solve correctly), but not for this  
release.

-Steve


More information about the Digitalmars-d mailing list