www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to replace the main thread with custom thread

reply Heromyth <bitworld qq.com> writes:
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 04 2019
parent Heromyth <bitworld qq.com> writes:
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.
May 04 2019