Re: [gtkmm] Glib::Dispatcher slow response
- From: Fredrik Arnerup <e97_far e kth se>
- To: Michael Van Damme <michael vandamme vub ac be>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] Glib::Dispatcher slow response
- Date: Tue, 21 Oct 2003 20:14:58 +0200
On 2003.10.21 19:18, Michael Van Damme wrote:
I'm using Glib::Dispatcher to display data I receive from the device
in the main thread. Sometimes,
everything works fine after starting the communication. Sometimes,
however, after starting the communication
I receive data, but is isn't being shown on the screen. The window
remains frozen for about 10 to 15 seconds
before the output starts. During this time, the commucation thread is
emitting signals through the dispatcher,
but the function that handles these signals in the main thread just
isn't being called. After about 15 seconds,
the problem disappears, and everything runs perfectly.
This is just a guess, but perhaps it is a scheduling problem? The comm
thread could be working so hard that the main thread doesn't get a
chance to run. You could try letting the comm thread sleep a while
every now and then, or change the priority of the thread.
/Fredrik Arnerup
e97_far e kth se
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]