How to replace the main thread with custom thread

Heromyth bitworld at qq.com
Sun May 5 05:49:07 UTC 2019


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.


More information about the Digitalmars-d-learn mailing list