Passing associative array to another thread
Martin Drasar
drasar at ics.muni.cz
Sat Sep 22 04:36:44 PDT 2012
On 22.9.2012 13:19, Jonathan M Davis wrote:
> The problem with immutable is probably due to this bug:
>
> http://d.puremagic.com/issues/show_bug.cgi?id=5538
>
> And casting to shared probably won't work due to this bug:
>
> http://d.puremagic.com/issues/show_bug.cgi?id=6585
>
> std.variant needs quite a bit of work done to it, and it's causing problems
> with std.concurrency is this case. In the interim, I suspect that just about
> the only way to get an AA across threads is to just make it shared and not use
> std.concurrency at all, as undesirable as that may be. Your serialization
> suggestion would probably be the only other choice, though that would require
> something like Orange, as Phobos doesn't have such facilities.
>
> - Jonathan M Davis
Hi Jonathan,
I will work around the AA. As I have said, it is used only to pass
name-value pairs. So no need to ditch the entire std.concurrency because
of that.
Martin
More information about the Digitalmars-d-learn
mailing list