How to update display in another thread ?
- From: ztl_post <ztl_post 163 com>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: How to update display in another thread ?
- Date: Mon, 9 May 2005 22:41:55 +0800
Hi All,
I want to display a plane on the screen based on the position
information given by remote machine. So I create a thread waitting
for the position information. When this thread got the
information, it should update the display position in the
window. How can I reach this ?
I tried this:
thread_function()
{
...
wait_for_information(&position);
window->set_plane_position(position);
window->on_expose_event();
...
}
But it got an error when running:
Xlib: unexpected async reply (sequence 0x708)!
Any suggestion will be apprecieate!
--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]