using pthread in qemu
hi!
i know... i have been told not to use them, but i just HAVE TO for the moment :-(
i need to run a second thread inside my hardware module which is not a problem as long as i don't use the qcow2 image format. when i switch to qcow2, qemu's main thread hangs because the second thread is waiting for a semaphore...
does anyone know how to tell the second pthread not to block the primary thread??
as always --- any help is greatly appreciated!!
Clemens
Hi,
Quoted 10 lines · Clemens Kolbitsch
hi!
i know... i have been told not to use them, but i just HAVE TO for the moment :-(i need to run a second thread inside my hardware module which is not a problem as long as i don't use the qcow2 image format. when i switch to qcow2, qemu's main thread hangs because the second thread is waiting for a semaphore...
does anyone know how to tell the second pthread not to block the primary thread??
Maybe this thread can be helpful:
http://lists.gnu.org/archive/html/qemu-devel/2007-04/msg00090.html
Regards,
Andrew
Quoted 9 lines · On Wednesday 03 October 2007 13:04:33 you wrote:
hi!
i know... i have been told not to use them, but i just HAVE TO for the moment :-(i need to run a second thread inside my hardware module which is not a problem as long as i don't use the qcow2 image format. when i switch to qcow2, qemu's main thread hangs because the second thread is waiting for a semaphore...
Quoted 5 lines
does anyone know how to tell the second pthread not to block the primary thread??
as always --- any help is greatly appreciated!!
Clemens
ok... i solved my problem using the qemu_timers
works just fine ;-)