How to ensure a thread cannot be blocked by the GC?
    ponce via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Wed Dec  3 14:54:48 PST 2014
    
    
  
On Wednesday, 3 December 2014 at 22:53:48 UTC, ponce wrote:
> I have a DLL written in D that gets called by two different 
> threads, created by a non-D host program (audio plugin). I did 
> not create those threads, but my understanding is that they get 
> "attached" to the D runtime.
>
> Thread A is a real-time callback and should not ever block. 
> @nogc seems perfect for this.
>
> Thread B and it's impractical to make it @nogc.
>
> How to ensure that a collection triggered by thread B never 
> stop thread A in stop the world collections?
Correction:
> Thread B isn't real-time, allocates, and it's impractical to 
> make it @nogc.
    
    
More information about the Digitalmars-d-learn
mailing list