Skip to contentSkip to conversation

using pthread in qemu

Qemu-devel Clemens Kolbitsch 1 participant 1 message 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
Quoted 12 lines · On Wednesday 03 October 2007 16:16:55 [email protected] wrote:

Hi,

Quoted 9 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...

Quoted 5 lines
Quoted 2 lines

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

yes.. that might have been helpful if I hadn't solved the problem differently (and I'm quite happy to have gotten rid of the pthread code ;-) )

Thanks for the answer, though!!