Statistics
| Branch: | Revision:

root / qemu-thread-posix.c @ 93148aa5

History | View | Annotate | Download (3.4 kB)

# Date Author Comment
cf218714 12/13/2011 01:06 am Jan Kiszka

qemu-thread: add API for joinable threads

Split from Jan's original qemu-thread-posix.c patch. No semantic change,
just introduce the new API that POSIX and Win32 implementations will
conform to.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Paolo Bonzini <>...

8763046b 12/13/2011 01:06 am Jan Kiszka

qemu-thread: implement joinable threads for POSIX

Allow to control if a QEMU thread is created joinable or not. Make it
not joinable by default to avoid that we keep the associated resources
around when terminating a thread without joining it (what we couldn't do...

53380ac3 09/21/2011 12:50 pm Jan Kiszka

Abort on thread layer errors

Makes it easier to catch the bug in gdb as there is no need to set an
explicit breakpoint.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Stefan Hajnoczi <>

44bc10d5 03/19/2011 10:30 am Blue Swirl

qemu-thread: delete unused functions

qemu_mutex_timedlock() and qemu_cond_timedwait() are no longer used.

Remove them and their helper timespec_add_ms().

Reported-by: François Revol <>
Signed-off-by: Blue Swirl <>

cc015e9a 03/13/2011 04:44 pm Paolo Bonzini

add Win32 IPI service

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

9257d46d 03/13/2011 04:44 pm Paolo Bonzini

add win32 qemu-thread implementation

For now, qemu_cond_timedwait and qemu_mutex_timedlock are left as
POSIX-only functions. They can be removed later, once the patches
that remove their uses are in.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

89b48b56 03/13/2011 04:44 pm Paolo Bonzini

add assertions on the owner of a QemuMutex

These are already present in the Win32 implementation, add them to
the pthread wrappers as well. Use PTHREAD_MUTEX_ERRORCHECK for mutex
operations. Later we'll add tracking of the owner for cond_signal/broadcast....