Socket and spawn()
    Andy Valencia 
    dont at spam.me
       
    Fri May 31 16:07:23 UTC 2024
    
    
  
I'm coding a server which takes TCP connections.  I end up in the 
main thread with .accept() which hands me a Socket.  I'd like to 
hand this off to a spawn()'ed thread to do the actual work.
     Aliases to mutable thread-local data not allowed.
Is there some standard way to get something which _isn't_ in TLS? 
  Or do I have to drop back to file descriptors and do my own 
socket handling?
TIA,
Andy
    
    
More information about the Digitalmars-d-learn
mailing list