in reply to Re: ctrl + c on Win32 (signal handling)
in thread ctrl + c on Win32 (signal handling)
Waking up once a second will improve your response time and cause negligible extra cpu usage.I see... I can get quicker resonse. This seems good compromize for me.
But I suspect that in your real code you are wanting to do more in the while than just sleep?Yes. What I do in real "while loop" is like this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: ctrl + c on Win32 (signal handling)
by remiah (Hermit) on Aug 26, 2011 at 21:06 UTC |