Workaround for typeid access violation

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 18 04:43:18 PDT 2015


On Wed, 17 Jun 2015 22:35:12 +0000, Etienne Cimon wrote:

> e.g. __gshared MyObj g_obj1;
> 
> Thread 1: g_obj1 = new MyObj;
> Thread 2: g_obj1.obj2 = new MyObj;
> Thread 3: write(g_obj1.obj2); <-- access violation (probably)

so no way to anchor the whole object tree by assigning it to __gshared 
root? sure, this will never make it into mainline.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150618/aa41d5c8/attachment.sig>


More information about the Digitalmars-d mailing list