dispatcher

Psychological Cleanup via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Sep 5 22:57:18 PDT 2017


I have a C callback that must call some functions declared in D. 
I can't call them off the C thread because it will result in a 
violation. What is a good way to dispatch the call to the main D 
program?

I'm thinking that I might have to create an extra thread that 
monitors for when a call needs to occur and does so. Doesn't seem 
very effective though? Does anyone know how C# does it?


More information about the Digitalmars-d-learn mailing list