[Issue 13262] New: Cannot send certain shared data to another thread
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Aug 5 11:40:01 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13262
Issue ID: 13262
Summary: Cannot send certain shared data to another thread
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: enhancement
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: andrei at erdani.com
Consider:
import std.concurrency;
void fun(Tid tid, shared int[] a) {
tid.send(a);
}
This doesn't compile due to an obscure memcpy type mismatch in std.variant. It
should be legal to send pretty much any shared data across threads.
--
More information about the Digitalmars-d-bugs
mailing list