1
Fork 0

apply patch from falktx that fixes the 100% CPU use problem

This commit is contained in:
Nedko Arnaudov 2011-03-14 23:40:49 +02:00
parent a3f9e0b872
commit d7148d2498
1 changed files with 4 additions and 3 deletions

View File

@ -923,19 +923,20 @@ public:
}
}
bool on_idle() {
static gboolean maybe_ladish_L1_save(void* ptr) {
if (ladish_L1_save_request) {
printf("ladish L1 save request\n");
ladish_L1_save_request = false;
on_save_action();
Jacker::App* app = (Jacker::App*)ptr;
app->on_save_action();
}
return true;
}
void init_idle() {
idle = Glib::signal_idle().connect(sigc::mem_fun(*this, &App::on_idle));
g_timeout_add(300, maybe_ladish_L1_save, this);
}
void run() {