How to update display in another thread ?



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]