reduce number of context switches
This commit is contained in:
parent
b39beacc40
commit
c85f6cbf7e
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ void console::operator()()
|
||||||
set_thread_name("kek::console");
|
set_thread_name("kek::console");
|
||||||
|
|
||||||
while(*stop_event != EVENT_TERMINATE && !stop_thread_flag) {
|
while(*stop_event != EVENT_TERMINATE && !stop_thread_flag) {
|
||||||
int c = wait_for_char_ll(100);
|
int c = wait_for_char_ll(500);
|
||||||
|
|
||||||
if (c == -1)
|
if (c == -1)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue