Leave GC collection to the user of the D library?
Ola Fosheim Grostad
ola.fosheim.grostad at gmail.com
Sun May 9 07:59:45 UTC 2021
On Sunday, 9 May 2021 at 03:25:06 UTC, Ali Çehreli wrote:
> The library starts the daemon with pipeProcess(); pipes are
> used for dispatching requests and shared memory is used for
> large data. This idea "worked like a charm." Phew!
Why don't you do this in a manner that works with multiple
threads? Block calling threads with semaphores, wake them up when
results are ready.
(Sidenote, if gc was task limited then this would not have been
an issue...)
More information about the Digitalmars-d
mailing list