Skip to contentSkip to conversation

using pthread in qemu

Qemu-devel Clemens Kolbitsch 2 participants 3 messages Oct 3, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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

#2 lore raw

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

#3 lore raw
In reply to Clemens Kolbitsch
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 ;-)