Posted by Aegidius on 2007-01-08 13:54 CET
|
Hello, In a big application using CHAMP I have an event loop which handles all user input. Even when the program is in "idle" mode waiting for any user input, it consumes almost 100% CPU time, even if I call CP::yield() repeatedly. The prototype of the program is as follows: #include <champ.h> void gmain () { cinit(); cout << "Press any key to quit..."; while (!kbhit()) { CP::yield(); } cend(); } Substituting CP::yield() with CPTimer::delay(10) does not help. What can I do? Thanks, Aegidius |
| Email: (hidden) |
|
Copyright © 2010 Salvisberg Software & Consulting. All rights reserved. |
Top |