Single-thread processes

Cecil Ward cecil at cecilward.com
Wed Jun 28 23:46:17 UTC 2023


If your program is such that one process will never ever involve 
multiple threads, because it simply doesn’t apply in your 
situation, then would it be worthwhile to have a "version 
(D_SingleThread)" which would get rid of the all-statics in TLS 
thing and make __g shared into a respectable, fully-ok storage 
class modifier that is fine in @safe code. What do you think? 
That way, you would be documenting what you’re doing and would 
not need to have any TLS-statics overhead?


More information about the Digitalmars-d-learn mailing list