Re: Bartosz asks Whatâs Wrong with the Th
Bartosz Milewski
bartosz-nospam at relisoft.com
Thu Jul 9 08:36:05 PDT 2009
Sean Kelly Wrote:
> It would be trivial to implement spawn on top of the Thread object.
Not so trivial, as I would like the spawn function to be a variadic template.
> And
> the reverse would work as well, though it would be less practical. After
> all, some data must be used to represent a thread even with the spawn
> model, and it would be silly to graft a thread abstraction a few layers
> above this.
I didn't discuss the details of spawn, but I see it as returning a ThreadHandle struct holding the ID and providing methods that operate on the thread--essentially all the Thread methods except run.
More information about the Digitalmars-d
mailing list