Is there a reason that core.sync.Condition.notify is not annotated @nogc?

Mindy (0xEAB) desisma at heidel.beer
Fri Jul 17 00:08:02 UTC 2026


On Saturday, 11 July 2026 at 06:22:44 UTC, Danni Coy wrote:
> Trying to write low latency code, I have a thread that 
> allocates memory
> ahead of what I need.
> The thread is only needed occasionally, so I was going to try
> core.sync.Condition.wait in the threads main loop, so far so 
> good.
>
> Ok so the realtime thread needs to wake up the memory thread, 
> which uses core.sync.Condition.notify - the problem is that I 
> have my realtime thread annotated @nogc.

See: 
<https://forum.dlang.org/post/mailman.75.1784175306.2645.digitalmars-d-learn@puremagic.com>


More information about the Digitalmars-d-learn mailing list