Re: Concurency wtf?

2015-09-08 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/8/15 2:54 PM, Prudence wrote: I can't seem to receive certain messages, my code is very simple and it all works except for receiving: in one thread I do locate("MyMonitor").send(cast(shared)pt); You are casting to shared here. which sends the message(pt is a windows POINT structure

Concurency wtf?

2015-09-08 Thread Prudence via Digitalmars-d-learn
I can't seem to receive certain messages, my code is very simple and it all works except for receiving: in one thread I do locate("MyMonitor").send(cast(shared)pt); which sends the message(pt is a windows POINT structure). In the MyMonitor spawned thread, I have while (t