"is not callable using a non-shared object"
Kagamin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Dec 11 03:53:04 PST 2015
On Thursday, 10 December 2015 at 22:07:48 UTC, Entity325 wrote:
> Usually the DMD compiler errors are very helpful, but I guess
> nothing can be perfect. In this case, I have a class I'm trying
> to declare. The class is intended to be a transport and storage
> medium, to allow information to be passed and updated
> asynchronously between two threads. One of the threads will
> periodically update, add to, or remove from the data. The other
> thread periodically checks the data. Both threads need to be
> able to run asynchronously themselves, so message passing using
> std.concurrency isn't an option. Both threads need to run in a
> loop, so the tools in std.parallelism don't work either.
If you can't have either of these two threads own the data, then
you can have third "server" thread that will own the data and
these two "client" threads will communicate with the server
thread through std.concurrency.
More information about the Digitalmars-d-learn