May 05, 2019 How to replace the main thread with custom thread | ||||
---|---|---|---|---|
| ||||
We have made some extensions to std.thread. See: https://github.com/huntlabs/hunt/blob/master/source/hunt/concurrency/thread/ThreadEx.d. All the threads except the main thread now can be created with ThreadEx. My question is how can I create the main thread with ThreadEx. Is it possible or necessary? Should I modify std.thread and rebuild the Phobos? Thanks. |
May 05, 2019 Re: How to replace the main thread with custom thread | ||||
---|---|---|---|---|
| ||||
Posted in reply to Heromyth | On Sunday, 5 May 2019 at 05:49:07 UTC, Heromyth wrote:
> We have made some extensions to std.thread.
> See: https://github.com/huntlabs/hunt/blob/master/source/hunt/concurrency/thread/ThreadEx.d.
>
> All the threads except the main thread now can be created with ThreadEx.
>
> My question is how can I create the main thread with ThreadEx. Is it possible or necessary?
> Should I modify std.thread and rebuild the Phobos?
>
> Thanks.
It's so sad. The std.thread should be core.thread.
|
Copyright © 1999-2021 by the D Language Foundation