Leave GC collection to the user of the D library?

Ali Çehreli acehreli at yahoo.com
Mon May 10 03:45:23 UTC 2021


On 5/9/21 6:58 PM, Ola Fosheim Grostad wrote:

> Yes, one semaphore may use an nonoptimal order when it wakes up threads...
> Getting this right takes some time.

ReadWriteMutex is promising:

   https://dlang.org/library/core/sync/rwmutex/read_write_mutex.html

The writer would be the garbage collecting thread in this case.

Ali


More information about the Digitalmars-d mailing list