On 6/28/16 4:35 PM, Ola Fosheim Grøstad wrote:
On Tuesday, 28 June 2016 at 20:24:33 UTC, Steven Schveighoffer wrote:
On 6/28/16 4:12 PM, luminousone wrote:
Is puts high enough latency that, that main thread can fill the message
queue faster then start can exhaust it? If you put a call to sleep for
1ms in the main loop does it have the same result?
I think this is it. Your main loop is doing very little, basically
just allocating memory. The child thread is putting data to the
console, which is much more expensive.
Is the message queue unlimited by default?
It appears so:
https://github.com/dlang/phobos/blob/master/std/concurrency.d#L2164
m_maxMsgs is default 0.
-Steve