fork/waitpid and std.concurrency.spawn

Puming via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 22 07:26:03 PDT 2014


I've only found spawnProcess/spawnShell and the like, which 
executes a new command, but not a function pointer, like fork() 
and std.concurrency.spawn does.

What is the function that does what I describe?

On Tuesday, 22 July 2014 at 10:43:58 UTC, FreeSlave wrote:
> On Tuesday, 22 July 2014 at 07:58:50 UTC, Puming wrote:
>> Is there a fork()/wait() API similar to std.concurrency 
>> spawn()?
>>
>> The best thing I've got so far is module 
>> core.sys.posix.unistd.fork(), but it seems to only work in 
>> posix. Is there a unified API for process level concurrency? 
>> ideally with actor and send message support too.
>
> You need std.process.



More information about the Digitalmars-d-learn mailing list