Thank you :)
From: 10353@lyskom.lysator.liu.se Subject: FW: Sdl 100% cpu loading question To: pike-devel@lists.lysator.liu.se Date: Mon, 19 Jul 2010 09:40:03 +0000
Simply make sure to use Event()->wait() instead of Event()->get(), and the process will sleep until it receives the next event. If you want to return -1 from main, just create a separate thread for the event loop.
_________________________________________________________________ Hotmail: Hatékony, ingyenes e-mail szolgáltatás a Microsoft által biztosított védelemmel. https://signup.live.com/signup.aspx?id=60969