How to ensure a thread cannot be blocked by the GC?
via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Dec 4 02:20:27 PST 2014
On Thursday, 4 December 2014 at 08:18:23 UTC, ponce wrote:
> In fact I was registering them both with
> core.sys.windows.dll.dll_thread_attach() when callbacked with
> DLL_THREAD_ATTACH, but I see now that I should instead register
> to the runtime only the interruptible thread.
Yes, I assume you should still call it for the real time thread,
but with the first param set to false?
bool dll_thread_attach( bool attach_thread = true, bool initTls =
true )
> Made-up problem!
Made-up problems can be very useful. I got some new ideas for
real time GC support when thinking about this… ;-)
More information about the Digitalmars-d-learn
mailing list