can clone a thread?

Ali Çehreli acehreli at yahoo.com
Tue Dec 10 05:39:17 PST 2013


On 12/10/2013 04:04 AM, Gianni Pisetta wrote:
> Hi,
> i want to duplicate/clone a thread with the stack and tls, like the
> standard function fork() in c. Is in the phobos library a method that do
> the same thing?
>
> Gianni Pisetta

Apparently, there isn't. However, you can use fork() directly from the 
core.sys.posix.unistd module.

Ali



More information about the Digitalmars-d-learn mailing list