ARSD PNG memory usage

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 17 19:01:29 PDT 2016


On Saturday, 18 June 2016 at 01:20:16 UTC, Joerg Joergonson wrote:
> Error: undefined identifier 'sleep', did you mean function 
> 'Sleep'?		
>
> "import core.thread; sleep(10);"

It is `Thread.sleep(10.msecs)` or whatever time - `sleep` is a 
static member of the Thread class.


> They mention to use PeekMessage and I don't see you doing that, 
> not sure if it would change things though?

I am using MsgWaitForMultipleObjectsEx which blocks until 
something happens. That something can be a timer, input event, 
other message, or an I/O thing... it doesn't eat CPU unless 
*something* is happening.


More information about the Digitalmars-d-learn mailing list