Std Phobos 2 and logging library?
Robert Jacques
sandford at jhu.edu
Sat Apr 11 11:06:12 PDT 2009
On Sat, 11 Apr 2009 12:12:07 -0400, Sean Kelly <sean at invisibleduck.org>
wrote:
> Robert Jacques wrote:
>> On that note, support for per thread GCs in general is another major
>> change. i.e.:
>> GC.malloc!(T)();
>> to
>> Thread.getThis.gc.malloc!(T)(); // Alternatively use thread local
>> storage.
>
> It can remain as GC.malloc(). Exposing a GC handle via thread would
> allow one thread to use another thread's GC.
Yeah, after a night's sleep I realized that GC.malloc() could just wrap
the underlying implementation.
P.S. The post was meant to illustrate the under-the-hood changes (i.e. not
public), but didn't come out that way.
More information about the Digitalmars-d
mailing list